| author | |
| committer | |
| log | 9aae4d57cb6baf409b54d67a8a312624f8ad84b6 |
| tree | 3c84a3bd801eca70063c6194cb768548cb034437 |
| parent | e498fb155051f548071da1a13098b8793f527275 |
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 | 147 | } |
| 148 | 148 | |
| 149 | 149 | pub 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 | } |
| 152 | 153 | |
| 153 | 154 | pub fn log2l(x: c_longdouble) callconv(.C) c_longdouble { |