Fix casts in math module

This commit is contained in:
data-man
2021-05-18 21:54:48 +05:00
committed by Christoffer Lerno
parent fc31c15914
commit d663af1e1a

View File

@@ -44,13 +44,13 @@ public func double log10(double x)
hx += 0x3ff00000 - 0x3fe6a09e;
k += (int)(hx >> 20) - 0x3ff;
hx = (hx & 0x000fffff) + 0x3fe6a09e;
u.i = (ulong) << 32 | (u.i & 0xffffffff)(hx);
u.i = (ulong)(hx << 32) | (u.i & 0xffffffff);
x = u.f;
hx += 0x3ff00000 - 0x3fe6a09e;
k += (int)(hx >> 20) - 0x3ff;
hx = (hx & 0x000fffff) + 0x3fe6a09e;
u.i = (ulong) << 32 | (u.i & 0xffffffff)(hx);
u.i = (ulong)(hx << 32) | (u.i & 0xffffffff);
x = u.f;