mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-08 14:54:42 +00:00
compiler_rt: fix infinite loop
This commit is contained in:
parent
e498fb1550
commit
9aae4d57cb
1 changed files with 2 additions and 1 deletions
|
|
@ -147,7 +147,8 @@ pub fn __log2x(a: f80) callconv(.C) f80 {
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn log2q(a: f128) callconv(.C) f128 {
|
pub fn log2q(a: f128) callconv(.C) f128 {
|
||||||
return math.log2(a);
|
// TODO: more correct implementation
|
||||||
|
return log2(@floatCast(f64, a));
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn log2l(x: c_longdouble) callconv(.C) c_longdouble {
|
pub fn log2l(x: c_longdouble) callconv(.C) c_longdouble {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue