diff options
| author | Shawn Landden <shawn@git.icu> | 2019-06-21 16:18:59 -0500 |
|---|---|---|
| committer | Shawn Landden <shawn@git.icu> | 2019-06-22 14:34:34 -0500 |
| commit | 71e014caecaa54fdd8a0516710d2d9597da41398 (patch) | |
| tree | 4cfc85ed66ba9aec49e3f672a80c39b98e598177 /src/ir.hpp | |
| parent | ebde2ff899c16612c7ff58df61f3946be47c51c8 (diff) | |
| download | zig-71e014caecaa54fdd8a0516710d2d9597da41398.tar.gz zig-71e014caecaa54fdd8a0516710d2d9597da41398.zip | |
stage1: add @sin @cos @exp @exp2 @ln @log2 @log10 @fabs @floor @ceil @trunc @round
and expand @sqrt
This revealed that the accuracy of ln is not as good as the current algorithm in
musl and glibc, and should be ported again.
v2: actually include tests
v3: fix reversal of in and out arguments on f128M_sqrt()
add test for @sqrt on comptime_float
do not include @nearbyInt() until it works on all targets.
Diffstat (limited to 'src/ir.hpp')
| -rw-r--r-- | src/ir.hpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ir.hpp b/src/ir.hpp index 4fb7552212..597624e2e6 100644 --- a/src/ir.hpp +++ b/src/ir.hpp @@ -26,5 +26,6 @@ bool ir_has_side_effects(IrInstruction *instruction); struct IrAnalyze; ConstExprValue *const_ptr_pointee(IrAnalyze *ira, CodeGen *codegen, ConstExprValue *const_val, AstNode *source_node); +const char *float_op_to_name(BuiltinFnId op, bool llvm_name); #endif |
