Files
mruby-mruby/mrbgems
Yukihiro "Matz" Matsumoto 5fcf4e10cd mruby-bigint: refactor udiv to unified pool-first-then-heap approach
Simplified udiv structure from 3 functions to 2 by eliminating udiv_pool
and integrating pool allocation directly into main udiv function:

- Removed udiv_pool function (~170 lines) and forward declaration
- Unified edge case handling and normalization in single location
- Pool allocation tried first for medium operands (4-64 limbs)
- Automatic heap fallback when pool allocation fails
- Manual pool management instead of problematic macros
- All tests pass (1713 OK, 0 KO)

This establishes the pattern for pool-aware complex functions.

Co-authored-by: Claude <noreply@anthropic.com>
2025-08-14 10:52:56 +09:00
..
2024-09-24 00:14:24 +10:00