diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2022-06-16 15:14:12 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2022-06-17 16:38:59 -0700 |
| commit | bbc610339814908e68d221748dffdbd8d8ec4f09 (patch) | |
| tree | 64ee6d459cd783d7f76bdf66b10843346485b02d /lib/compiler_rt/cmpdf2.zig | |
| parent | 453243d9e02a5d893828694e7090515de7777bb8 (diff) | |
| download | zig-bbc610339814908e68d221748dffdbd8d8ec4f09.tar.gz zig-bbc610339814908e68d221748dffdbd8d8ec4f09.zip | |
compiler-rt: fix tests
Diffstat (limited to 'lib/compiler_rt/cmpdf2.zig')
| -rw-r--r-- | lib/compiler_rt/cmpdf2.zig | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/compiler_rt/cmpdf2.zig b/lib/compiler_rt/cmpdf2.zig index f1661731fb..67dbcd8b4d 100644 --- a/lib/compiler_rt/cmpdf2.zig +++ b/lib/compiler_rt/cmpdf2.zig @@ -31,27 +31,27 @@ fn __cmpdf2(a: f64, b: f64) callconv(.C) i32 { /// "These functions return a value less than or equal to zero if neither argument is NaN, /// and a is less than or equal to b." -fn __ledf2(a: f64, b: f64) callconv(.C) i32 { +pub fn __ledf2(a: f64, b: f64) callconv(.C) i32 { return __cmpdf2(a, b); } /// "These functions return zero if neither argument is NaN, and a and b are equal." /// Note that due to some kind of historical accident, __eqdf2 and __nedf2 are defined /// to have the same return value. -fn __eqdf2(a: f64, b: f64) callconv(.C) i32 { +pub fn __eqdf2(a: f64, b: f64) callconv(.C) i32 { return __cmpdf2(a, b); } /// "These functions return a nonzero value if either argument is NaN, or if a and b are unequal." /// Note that due to some kind of historical accident, __eqdf2 and __nedf2 are defined /// to have the same return value. -fn __nedf2(a: f64, b: f64) callconv(.C) i32 { +pub fn __nedf2(a: f64, b: f64) callconv(.C) i32 { return __cmpdf2(a, b); } /// "These functions return a value less than zero if neither argument is NaN, and a /// is strictly less than b." -fn __ltdf2(a: f64, b: f64) callconv(.C) i32 { +pub fn __ltdf2(a: f64, b: f64) callconv(.C) i32 { return __cmpdf2(a, b); } |
