summaryrefslogtreecommitdiff
path: root/lib/mulvti3.c
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2010-03-31 17:00:45 +0000
committerDaniel Dunbar <daniel@zuster.org>2010-03-31 17:00:45 +0000
commit48f46ac1d9a82210f6e469567cb60aa7e7cd2f3b (patch)
tree2430003e391c78e6b21cdf3b8aaca12d94b430be /lib/mulvti3.c
parent95f271b12981bf7f9254fcd4f51be441aa73e638 (diff)
downloadcompiler-rt-48f46ac1d9a82210f6e469567cb60aa7e7cd2f3b.tar.gz
compiler-rt-48f46ac1d9a82210f6e469567cb60aa7e7cd2f3b.tar.bz2
compiler-rt-48f46ac1d9a82210f6e469567cb60aa7e7cd2f3b.tar.xz
Use a private compilerrt_abort() define instead of calling abort directly.
- Fiddling with abort directly is annoying given the way we use system includes, although it would be nice to fix this so we could make sure calling abort directly is verboten. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@100014 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/mulvti3.c')
-rw-r--r--lib/mulvti3.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/mulvti3.c b/lib/mulvti3.c
index 080cd635..778222ee 100644
--- a/lib/mulvti3.c
+++ b/lib/mulvti3.c
@@ -31,13 +31,13 @@ __mulvti3(ti_int a, ti_int b)
{
if (b == 0 || b == 1)
return a * b;
- abort();
+ compilerrt_abort();
}
if (b == MIN)
{
if (a == 0 || a == 1)
return a * b;
- abort();
+ compilerrt_abort();
}
ti_int sa = a >> (N - 1);
ti_int abs_a = (a ^ sa) - sa;
@@ -48,12 +48,12 @@ __mulvti3(ti_int a, ti_int b)
if (sa == sb)
{
if (abs_a > MAX / abs_b)
- abort();
+ compilerrt_abort();
}
else
{
if (abs_a > MIN / -abs_b)
- abort();
+ compilerrt_abort();
}
return a * b;
}