mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
906b0aece7
Extract Knuth Algorithm D implementation from udiv() and udiv_pool() into shared udiv_core() helper function. Both functions now use the same ~100-line core division algorithm, eliminating genuine code duplication and ensuring fixes only need to be applied once. Benefits: - Eliminates ~150 lines of duplicated complex algorithm code - Single source of truth for critical division logic - Reduces maintenance burden for future bug fixes - Maintains all existing functionality and performance Co-authored-by: Claude <noreply@anthropic.com>