Files
mruby-mruby/mrbgems
Yukihiro "Matz" Matsumoto 906b0aece7 mruby-bigint: extract core division algorithm to eliminate duplication
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>
2025-08-14 10:52:53 +09:00
..
2024-09-24 00:14:24 +10:00