diff options
author | Joerg Sonnenberger <joerg@bec.de> | 2014-02-21 23:53:03 +0000 |
---|---|---|
committer | Joerg Sonnenberger <joerg@bec.de> | 2014-02-21 23:53:03 +0000 |
commit | 938b0df72dcaaeddcc0eb10a39bc5c66e84fbc80 (patch) | |
tree | fa0918b5bbc26e08c2f7f3d094fcf831e7a7dcd1 /compiler-rt/lib/builtins/modti3.c | |
parent | e245715fca522169779834c6d5bd2fbb65fbdffe (diff) | |
download | bcm5719-llvm-938b0df72dcaaeddcc0eb10a39bc5c66e84fbc80.tar.gz bcm5719-llvm-938b0df72dcaaeddcc0eb10a39bc5c66e84fbc80.zip |
Introduce CRT_HAS_128BIT, currently for all __LP64__ platforms.
Use it to enable the various functions for TI mode.
llvm-svn: 201909
Diffstat (limited to 'compiler-rt/lib/builtins/modti3.c')
-rw-r--r-- | compiler-rt/lib/builtins/modti3.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler-rt/lib/builtins/modti3.c b/compiler-rt/lib/builtins/modti3.c index 752202d45e0..ded24a01779 100644 --- a/compiler-rt/lib/builtins/modti3.c +++ b/compiler-rt/lib/builtins/modti3.c @@ -14,7 +14,7 @@ #include "int_lib.h" -#if __x86_64 +#ifdef CRT_HAS_128BIT tu_int __udivmodti4(tu_int a, tu_int b, tu_int* rem); @@ -33,4 +33,4 @@ __modti3(ti_int a, ti_int b) return (r ^ s) - s; /* negate if s == -1 */ } -#endif +#endif /* CRT_HAS_128BIT */ |