authorgravatar for git@vexu.euVeikka Tuominen <git@vexu.eu> 2022-06-03 14:27:45+03:00
committergravatar for git@vexu.euVeikka Tuominen <git@vexu.eu> 2022-06-03 14:27:45+03:00
log9aae4d57cb6baf409b54d67a8a312624f8ad84b6
tree3c84a3bd801eca70063c6194cb768548cb034437
parente498fb155051f548071da1a13098b8793f527275

compiler_rt: fix infinite loop


1 files changed, 2 insertions(+), 1 deletions(-)

lib/compiler_rt/log2.zig+2-1
...@@ -147,7 +147,8 @@ pub fn __log2x(a: f80) callconv(.C) f80 {...@@ -147,7 +147,8 @@ pub fn __log2x(a: f80) callconv(.C) f80 {
147}147}
148148
149pub fn log2q(a: f128) callconv(.C) f128 {149pub fn log2q(a: f128) callconv(.C) f128 {
150 return math.log2(a);150 // TODO: more correct implementation
151 return log2(@floatCast(f64, a));
151}152}
152153
153pub fn log2l(x: c_longdouble) callconv(.C) c_longdouble {154pub fn log2l(x: c_longdouble) callconv(.C) c_longdouble {