From bcf3a7d600ee409ec8e24fb1640fbda1d4e11660 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Fri, 17 Jun 2022 16:40:25 -0700 Subject: [PATCH] compiler-rt: gedf2 and gesf2 --- lib/compiler_rt/gedf2.zig | 2 +- lib/compiler_rt/gesf2.zig | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/compiler_rt/gedf2.zig b/lib/compiler_rt/gedf2.zig index dad6586861..684ba665b5 100644 --- a/lib/compiler_rt/gedf2.zig +++ b/lib/compiler_rt/gedf2.zig @@ -28,7 +28,7 @@ pub fn __gtdf2(a: f64, b: f64) callconv(.C) i32 { } fn __aeabi_dcmpge(a: f64, b: f64) callconv(.AAPCS) i32 { - return comparef.cmpf2(f64, comparef.GE, a, b) != .Less; + return @boolToInt(comparef.cmpf2(f64, comparef.GE, a, b) != .Less); } fn __aeabi_dcmpgt(a: f64, b: f64) callconv(.AAPCS) i32 { diff --git a/lib/compiler_rt/gesf2.zig b/lib/compiler_rt/gesf2.zig index 266e2f9c35..3d455e52bf 100644 --- a/lib/compiler_rt/gesf2.zig +++ b/lib/compiler_rt/gesf2.zig @@ -28,7 +28,7 @@ pub fn __gtsf2(a: f32, b: f32) callconv(.C) i32 { } fn __aeabi_fcmpge(a: f32, b: f32) callconv(.AAPCS) i32 { - return comparef.cmpf2(f32, comparef.GE, a, b) != .Less; + return @boolToInt(comparef.cmpf2(f32, comparef.GE, a, b) != .Less); } fn __aeabi_fcmpgt(a: f32, b: f32) callconv(.AAPCS) i32 {