Implement ldexp and frexp in native Odin

This commit is contained in:
gingerBill
2021-11-16 14:04:49 +00:00
parent 1ec0b79345
commit 6a101e69a2
4 changed files with 144 additions and 45 deletions
+1 -1
View File
@@ -436,7 +436,7 @@ internal_rat_to_float :: proc($T: typeid, z: ^Rat, allocator := context.allocato
mantissa >>= 1
f = T(math.ldexp(f64(mantissa), i32(exp-MSIZE1)))
f = T(math.ldexp(f64(mantissa), exp-MSIZE1))
if math.is_inf(f, 0) {
exact = false
}