diff options
| author | Linus Groh <mail@linusgroh.de> | 2025-03-03 18:01:47 +0000 |
|---|---|---|
| committer | Linus Groh <mail@linusgroh.de> | 2025-03-05 03:01:43 +0000 |
| commit | 79460d4a3eef8eb927b02a7eda8bc9999a766672 (patch) | |
| tree | 8ce2cfb123bf590e8c522860ad04c13b6e6d9aa9 /lib/compiler_rt/cmphf2.zig | |
| parent | 05937b362a8206f7eca193a28617049371f11b26 (diff) | |
| download | zig-79460d4a3eef8eb927b02a7eda8bc9999a766672.tar.gz zig-79460d4a3eef8eb927b02a7eda8bc9999a766672.zip | |
Remove uses of deprecated callconv aliases
Diffstat (limited to 'lib/compiler_rt/cmphf2.zig')
| -rw-r--r-- | lib/compiler_rt/cmphf2.zig | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/compiler_rt/cmphf2.zig b/lib/compiler_rt/cmphf2.zig index 15b9ad610f..9fcc1e24d5 100644 --- a/lib/compiler_rt/cmphf2.zig +++ b/lib/compiler_rt/cmphf2.zig @@ -19,32 +19,32 @@ comptime { /// /// Note that this matches the definition of `__lehf2`, `__eqhf2`, `__nehf2`, `__cmphf2`, /// and `__lthf2`. -fn __cmphf2(a: f16, b: f16) callconv(.C) i32 { +fn __cmphf2(a: f16, b: f16) callconv(.c) i32 { return @intFromEnum(comparef.cmpf2(f16, comparef.LE, a, b)); } /// "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." -pub fn __lehf2(a: f16, b: f16) callconv(.C) i32 { +pub fn __lehf2(a: f16, b: f16) callconv(.c) i32 { return __cmphf2(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, __eqhf2 and __nehf2 are defined /// to have the same return value. -pub fn __eqhf2(a: f16, b: f16) callconv(.C) i32 { +pub fn __eqhf2(a: f16, b: f16) callconv(.c) i32 { return __cmphf2(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, __eqhf2 and __nehf2 are defined /// to have the same return value. -pub fn __nehf2(a: f16, b: f16) callconv(.C) i32 { +pub fn __nehf2(a: f16, b: f16) callconv(.c) i32 { return __cmphf2(a, b); } /// "These functions return a value less than zero if neither argument is NaN, and a /// is strictly less than b." -pub fn __lthf2(a: f16, b: f16) callconv(.C) i32 { +pub fn __lthf2(a: f16, b: f16) callconv(.c) i32 { return __cmphf2(a, b); } |
