diff options
author | tege <tege@gmplib.org> | 2003-10-19 13:33:34 +0200 |
---|---|---|
committer | tege <tege@gmplib.org> | 2003-10-19 13:33:34 +0200 |
commit | 2b228e7a62b11c24d9071e8e242278024396de74 (patch) | |
tree | 79a46e3d2da25154e01f9655e11b49d842beb27d /longlong.h | |
parent | cfc757f29857b0f23ee7df90d91ca590dfd07ceb (diff) | |
download | gmp-2b228e7a62b11c24d9071e8e242278024396de74.tar.gz |
(AMD64): __x86_64__ => __amd64__.
(64-bit powerpc): Only define carry-dependent macros if !_LONG_LONG_LIMB.
Diffstat (limited to 'longlong.h')
-rw-r--r-- | longlong.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/longlong.h b/longlong.h index 8baa08c11..607822cbb 100644 --- a/longlong.h +++ b/longlong.h @@ -683,7 +683,7 @@ extern UWtype __MPN(udiv_qrnnd) _PROTO ((UWtype *, UWtype, UWtype, UWtype)); #endif #endif /* 80x86 */ -#if defined (__x86_64__) && W_TYPE_SIZE == 64 +#if defined (__amd64__) && W_TYPE_SIZE == 64 #define add_ssaaaa(sh, sl, ah, al, bh, bl) \ __asm__ ("addq %5,%1\n\tadcq %3,%0" \ : "=r" ((UDItype)(sh)), "=&r" ((UDItype)(sl)) \ @@ -1033,6 +1033,7 @@ extern UWtype __MPN(udiv_qrnnd) _PROTO ((UWtype *, UWtype, UWtype, UWtype)); /* We should test _IBMR2 here when we add assembly support for the system vendor compilers. */ #if (defined (_ARCH_PPC) || defined (__powerpc__)) && W_TYPE_SIZE == 64 +#if !defined (_LONG_LONG_LIMB) /* <- assume cpu in 32-bit mode */ #define add_ssaaaa(sh, sl, ah, al, bh, bl) \ do { \ if (__builtin_constant_p (bh) && (bh) == 0) \ @@ -1065,6 +1066,7 @@ extern UWtype __MPN(udiv_qrnnd) _PROTO ((UWtype *, UWtype, UWtype, UWtype)); : "=r" (sh), "=&r" (sl) \ : "r" (ah), "r" (bh), "rI" (al), "r" (bl)); \ } while (0) +#endif /* ! _LONG_LONG_LIMB */ #define count_leading_zeros(count, x) \ __asm__ ("cntlzd %0,%1" : "=r" (count) : "r" (x)) #define COUNT_LEADING_ZEROS_0 64 |