summaryrefslogtreecommitdiff
path: root/lib/builtins/udivmodti4.c
diff options
context:
space:
mode:
authorJoerg Sonnenberger <joerg@bec.de>2014-02-21 23:53:03 +0000
committerJoerg Sonnenberger <joerg@bec.de>2014-02-21 23:53:03 +0000
commit4733ccad998af454f8f4deca9f371326eb74458f (patch)
treedd04075dce5a43a2806219a505b86c65562028fb /lib/builtins/udivmodti4.c
parent05a9bf94486f8111132f3b20f551f432f739c39c (diff)
Introduce CRT_HAS_128BIT, currently for all __LP64__ platforms.
Use it to enable the various functions for TI mode. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@201909 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/builtins/udivmodti4.c')
-rw-r--r--lib/builtins/udivmodti4.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/builtins/udivmodti4.c b/lib/builtins/udivmodti4.c
index f619c7495..d8cea2ab7 100644
--- a/lib/builtins/udivmodti4.c
+++ b/lib/builtins/udivmodti4.c
@@ -14,7 +14,7 @@
#include "int_lib.h"
-#if __x86_64
+#ifdef CRT_HAS_128BIT
/* Effects: if rem != 0, *rem = a % b
* Returns: a / b
@@ -253,4 +253,4 @@ __udivmodti4(tu_int a, tu_int b, tu_int* rem)
return q.all;
}
-#endif /* __x86_64 */
+#endif /* CRT_HAS_128BIT */