diff options
Diffstat (limited to 'compiler-rt/lib/builtins/subvti3.c')
| -rw-r--r-- | compiler-rt/lib/builtins/subvti3.c | 25 |
1 files changed, 10 insertions, 15 deletions
diff --git a/compiler-rt/lib/builtins/subvti3.c b/compiler-rt/lib/builtins/subvti3.c index 661364d756d..9d554c1dbb6 100644 --- a/compiler-rt/lib/builtins/subvti3.c +++ b/compiler-rt/lib/builtins/subvti3.c @@ -19,21 +19,16 @@ /* Effects: aborts if a - b overflows */ -COMPILER_RT_ABI ti_int -__subvti3(ti_int a, ti_int b) -{ - ti_int s = (tu_int) a - (tu_int) b; - if (b >= 0) - { - if (s > a) - compilerrt_abort(); - } - else - { - if (s <= a) - compilerrt_abort(); - } - return s; +COMPILER_RT_ABI ti_int __subvti3(ti_int a, ti_int b) { + ti_int s = (tu_int)a - (tu_int)b; + if (b >= 0) { + if (s > a) + compilerrt_abort(); + } else { + if (s <= a) + compilerrt_abort(); + } + return s; } #endif /* CRT_HAS_128BIT */ |

