diff options
author | Kevin Ryde <user42@zip.com.au> | 2001-09-11 03:43:29 +0200 |
---|---|---|
committer | Kevin Ryde <user42@zip.com.au> | 2001-09-11 03:43:29 +0200 |
commit | d86ad20f4640e7750c5d924a1658be3762707bb9 (patch) | |
tree | 6997222285579aed4ac9edbc9a9a98b4869c583f | |
parent | 9a8c007794f941ccb0881c60276f3104e4febd38 (diff) | |
download | gmp-d86ad20f4640e7750c5d924a1658be3762707bb9.tar.gz |
* configure.in, gmp-h.in (__GMP_HAVE_HOST_CPU_FAMILY_power,
__GMP_HAVE_HOST_CPU_FAMILY_powerpc): New AC_SUBSTs.
* gmp-h.in (__GMPN_COPY_INCR): Use them to select the power/powerpc
code, rather than preprocessor defines.
-rw-r--r-- | gmp-h.in | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -25,7 +25,9 @@ MA 02111-1307, USA. */ /* Instantiated by configure, for internal use only. */ #if ! __GMP_WITHIN_CONFIGURE -#define __GMP_BITS_PER_MP_LIMB @__GMP_BITS_PER_MP_LIMB@ +#define __GMP_BITS_PER_MP_LIMB @__GMP_BITS_PER_MP_LIMB@ +#define __GMP_HAVE_HOST_CPU_FAMILY_power @__GMP_HAVE_HOST_CPU_FAMILY_power@ +#define __GMP_HAVE_HOST_CPU_FAMILY_powerpc @__GMP_HAVE_HOST_CPU_FAMILY_powerpc@ #endif @@ -1800,7 +1802,7 @@ mpf_size (mpf_srcptr f) xlc 3.1 already generates ldu/stu/bdnz from the generic C, and does so from this loop too. */ -#if defined (_ARCH_PPC) || defined (_ARCH_PWR) || defined (__powerpc__) +#if __GMP_HAVE_HOST_CPU_FAMILY_power || __GMP_HAVE_HOST_CPU_FAMILY_powerpc #define __GMPN_COPY_INCR(dst, src, size) \ do { \ /* ASSERT ((size) >= 0); */ \ |