Files
mruby-mruby/mrbgems
Yukihiro "Matz" Matsumoto 131d86629b mruby-bigint: extract core subtraction algorithm to eliminate duplication
Extract multi-limb subtraction algorithm from usub() and usub_pool()
into shared usub_core() helper function. Both functions now use the
same core subtraction logic with borrow propagation, eliminating
duplicated algorithm code.

Benefits:
- Eliminates ~14 lines of duplicated subtraction algorithm code
- Single source of truth for multi-limb subtraction with borrow handling
- Reduces maintenance burden for future optimizations
- 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