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 | 4733ccad998af454f8f4deca9f371326eb74458f (patch) | |
tree | dd04075dce5a43a2806219a505b86c65562028fb /lib/builtins/int_types.h | |
parent | 05a9bf94486f8111132f3b20f551f432f739c39c (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/int_types.h')
-rw-r--r-- | lib/builtins/int_types.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/builtins/int_types.h b/lib/builtins/int_types.h index fcce390f9..5107f7155 100644 --- a/lib/builtins/int_types.h +++ b/lib/builtins/int_types.h @@ -56,8 +56,11 @@ typedef union }s; } udwords; -#if __x86_64 +#if __LP64__ +#define CRT_HAS_128BIT +#endif +#ifdef CRT_HAS_128BIT typedef int ti_int __attribute__ ((mode (TI))); typedef unsigned tu_int __attribute__ ((mode (TI))); @@ -105,7 +108,7 @@ static inline tu_int make_tu(du_int h, du_int l) { return r.all; } -#endif /* __x86_64 */ +#endif /* CRT_HAS_128BIT */ typedef union { |