summaryrefslogtreecommitdiffstats
path: root/compiler-rt/lib/builtins/addvti3.c
diff options
context:
space:
mode:
Diffstat (limited to 'compiler-rt/lib/builtins/addvti3.c')
-rw-r--r--compiler-rt/lib/builtins/addvti3.c25
1 files changed, 10 insertions, 15 deletions
diff --git a/compiler-rt/lib/builtins/addvti3.c b/compiler-rt/lib/builtins/addvti3.c
index d0ee07a3872..72697fd9502 100644
--- a/compiler-rt/lib/builtins/addvti3.c
+++ b/compiler-rt/lib/builtins/addvti3.c
@@ -19,21 +19,16 @@
/* Effects: aborts if a + b overflows */
-COMPILER_RT_ABI ti_int
-__addvti3(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 __addvti3(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 */
OpenPOWER on IntegriCloud