zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit c993af62347faf124e97b16801356d34322a216e (tree)
parent c32171991b25b323cd68ff96c294bf5a6fa753b8
Author: flexicoding <97116715+flexicoding@users.noreply.github.com>
Date:   Sat, 18 Feb 2023 18:07:35 +0100

compiler_rt: remove unexported functions


Diffstat:
Mlib/compiler_rt/README.md | 4++++
Mlib/compiler_rt/gehf2.zig | 8--------
2 files changed, 4 insertions(+), 8 deletions(-)

diff --git a/lib/compiler_rt/README.md b/lib/compiler_rt/README.md @@ -260,6 +260,8 @@ Integer and Float Operations | ✓ | __gedf2 | f64 | f64 | i32 | .. | | ✓ | __getf2 | f128 | f128 | i32 | .. | | ✓ | __gexf2 | f80 | f80 | i32 | .. | +| ✓ | __aeabi_fcmpge | f32 | f32 | i32 | .. ARM | +| ✓ | __aeabi_dcmpge | f64 | f64 | i32 | .. ARM | | ✓ | __gekf2 | f128 | f128 | i32 | .. PPC | | ✓ | _Qp_fge |*f128 |*f128 | bool | .. SPARC | | ✓ | __lthf2 | f16 | f16 | i32 | `(a!=Nan) and (b!=Nan) and (a<b) -> output<0` | @@ -285,6 +287,8 @@ Integer and Float Operations | ✓ | __gtdf2 | f64 | f64 | i32 | .. | | ✓ | __gttf2 | f128 | f128 | i32 | .. | | ✓ | __gtxf2 | f80 | f80 | i32 | .. | +| ✓ | __aeabi_fcmpgt | f32 | f32 | i32 | .. ARM | +| ✓ | __aeabi_dcmpgt | f64 | f64 | i32 | .. ARM | | ✓ | __gtkf2 | f128 | f128 | i32 | .. PPC | | ✓ | _Qp_fgt |*f128 |*f128 | bool | .. SPARC | | | | | | | **Float Arithmetic** | diff --git a/lib/compiler_rt/gehf2.zig b/lib/compiler_rt/gehf2.zig @@ -21,11 +21,3 @@ pub fn __gehf2(a: f16, b: f16) callconv(.C) i32 { pub fn __gthf2(a: f16, b: f16) callconv(.C) i32 { return __gehf2(a, b); } - -fn __aeabi_fcmpge(a: f16, b: f16) callconv(.AAPCS) i32 { - return @boolToInt(comparef.cmpf2(f16, comparef.GE, a, b) != .Less); -} - -fn __aeabi_fcmpgt(a: f16, b: f16) callconv(.AAPCS) i32 { - return @boolToInt(comparef.cmpf2(f16, comparef.LE, a, b) == .Greater); -}