mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
b6148c893f
Replace lossy 2-bit truncation with rotation-based encoding for 64-bit word boxing with float64. The new scheme uses rotl64(float_bits - ADDEND, 3) to embed floats inline with full 52-bit mantissa precision. Floats with exponents outside [-255,+256] (0.0, NaN, Inf, very small/large values) fall back to heap-allocated RFloat. Co-authored-by: Claude <noreply@anthropic.com>