]>
Commit | Line | Data |
---|---|---|
1 | --- gmp-5.0.1/gmp-h.in.orig 2010-02-06 13:43:13.000000000 +0100 | |
2 | +++ gmp-5.0.1/gmp-h.in 2010-03-26 08:29:16.966713597 +0100 | |
3 | @@ -30,7 +30,12 @@ | |
4 | #if ! defined (__GMP_WITHIN_CONFIGURE) | |
5 | #define __GMP_HAVE_HOST_CPU_FAMILY_power @HAVE_HOST_CPU_FAMILY_power@ | |
6 | #define __GMP_HAVE_HOST_CPU_FAMILY_powerpc @HAVE_HOST_CPU_FAMILY_powerpc@ | |
7 | -#define GMP_LIMB_BITS @GMP_LIMB_BITS@ | |
8 | +/* ugly hack: limb size differs depending on ABI */ | |
9 | +#if defined(__arch64__) || defined(__powerpc64__) || defined(__s390x__) || defined(__x86_64__) | |
10 | +#define GMP_LIMB_BITS 64 | |
11 | +#else | |
12 | +#define GMP_LIMB_BITS 32 | |
13 | +#endif | |
14 | #define GMP_NAIL_BITS @GMP_NAIL_BITS@ | |
15 | #endif | |
16 | #define GMP_NUMB_BITS (GMP_LIMB_BITS - GMP_NAIL_BITS) |