diff options
author | Kevin Ryde <user42@zip.com.au> | 2004-03-20 01:55:12 +0100 |
---|---|---|
committer | Kevin Ryde <user42@zip.com.au> | 2004-03-20 01:55:12 +0100 |
commit | 2a24557f2265d9dcf51cc74b8be34043004f4185 (patch) | |
tree | eb12b0f68bab5bf291779ae1b3c7929bebe3b9f4 /longlong.h | |
parent | e517c572581813be3397c8e3e7d7b082e6916a0e (diff) | |
download | gmp-2a24557f2265d9dcf51cc74b8be34043004f4185.tar.gz |
* longlong.h (power, powerpc): Add comments on how we select this code.
Diffstat (limited to 'longlong.h')
-rw-r--r-- | longlong.h | 21 |
1 files changed, 19 insertions, 2 deletions
diff --git a/longlong.h b/longlong.h index 2337cc940..1b1eb3bb8 100644 --- a/longlong.h +++ b/longlong.h @@ -997,8 +997,25 @@ extern UWtype __MPN(udiv_qrnnd) _PROTO ((UWtype *, UWtype, UWtype, UWtype)); } while (0) #endif /* __ns32000__ */ -/* FIXME: We should test _IBMR2 here when we add assembly support for the - system vendor compilers. */ +/* In the past we had a block of various #defines tested + _ARCH_PPC - AIX + _ARCH_PWR - AIX + __powerpc__ - gcc + __POWERPC__ - BEOS + __ppc__ - Darwin + PPC - old gcc, GNU/Linux, SysV + The plain PPC test was not good for vxWorks, since PPC is defined on all + CPUs there (eg. m68k too), as a constant one is expected to compare + CPU_FAMILY against. + + At any rate, this was pretty unattractive and a bit fragile. The use of + HAVE_HOST_CPU_FAMILY is designed to cut through it all and be sure of + getting the desired effect. + + ENHANCE-ME: We should test _IBMR2 here when we add assembly support for + the system vendor compilers. (Is that vendor compilers with inline asm, + or what?) */ + #if (HAVE_HOST_CPU_FAMILY_power || HAVE_HOST_CPU_FAMILY_powerpc) \ && W_TYPE_SIZE == 32 #define add_ssaaaa(sh, sl, ah, al, bh, bl) \ |