Implement ldexp and frexp in native Odin
This commit is contained in:
1 parent
1ec0b79345
commit
6a101e69a2
4 files changed
+144
-45
No files matched your search
@@ -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
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user