mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
ef64ca32a1
Add fast path for multiplying by powers of 2 (2^n). Uses left shift instead of Karatsuba multiplication: x * 2^n = x << n. This optimizes "mostly-zero" patterns common in fuzzing tests, where numbers like 2^2097150 (single bit set) would otherwise trigger slow Karatsuba multiplication. Co-authored-by: Claude <noreply@anthropic.com>