diff options
Diffstat (limited to 'compiler-rt/lib/builtins/cmpti2.c')
| -rw-r--r-- | compiler-rt/lib/builtins/cmpti2.c | 30 |
1 files changed, 14 insertions, 16 deletions
diff --git a/compiler-rt/lib/builtins/cmpti2.c b/compiler-rt/lib/builtins/cmpti2.c index 04bcaac1c4f..14a5b391f7a 100644 --- a/compiler-rt/lib/builtins/cmpti2.c +++ b/compiler-rt/lib/builtins/cmpti2.c @@ -20,22 +20,20 @@ * if (a > b) returns 2 */ -COMPILER_RT_ABI si_int -__cmpti2(ti_int a, ti_int b) -{ - twords x; - x.all = a; - twords 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 __cmpti2(ti_int a, ti_int b) { + twords x; + x.all = a; + twords 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 */ |

