summaryrefslogtreecommitdiffstats
path: root/compiler-rt/lib/builtins/ucmpti2.c
diff options
context:
space:
mode:
Diffstat (limited to 'compiler-rt/lib/builtins/ucmpti2.c')
-rw-r--r--compiler-rt/lib/builtins/ucmpti2.c30
1 files changed, 14 insertions, 16 deletions
diff --git a/compiler-rt/lib/builtins/ucmpti2.c b/compiler-rt/lib/builtins/ucmpti2.c
index dbbbe43dba0..104099e926e 100644
--- a/compiler-rt/lib/builtins/ucmpti2.c
+++ b/compiler-rt/lib/builtins/ucmpti2.c
@@ -20,22 +20,20 @@
* if (a > b) returns 2
*/
-COMPILER_RT_ABI si_int
-__ucmpti2(tu_int a, tu_int b)
-{
- utwords x;
- x.all = a;
- utwords y;
- y.all = b;
- if (x.s.high < y.s.high)
- return 0;
- if (x.s.high > y.s.high)
- return 2;
- if (x.s.low < y.s.low)
- return 0;
- if (x.s.low > y.s.low)
- return 2;
- return 1;
+COMPILER_RT_ABI si_int __ucmpti2(tu_int a, tu_int b) {
+ utwords x;
+ x.all = a;
+ utwords y;
+ y.all = b;
+ if (x.s.high < y.s.high)
+ return 0;
+ if (x.s.high > y.s.high)
+ return 2;
+ if (x.s.low < y.s.low)
+ return 0;
+ if (x.s.low > y.s.low)
+ return 2;
+ return 1;
}
#endif /* CRT_HAS_128BIT */
OpenPOWER on IntegriCloud