]> git.pld-linux.org Git - packages/gmp.git/blob - gmp-multilib.patch
- updated to 6.3.0
[packages/gmp.git] / gmp-multilib.patch
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; note: x32 ABI uses longlong limb, so also 64 bits */
9 +#if defined(__arch64__) || defined(__powerpc64__) || defined(__s390x__) || defined(__x86_64__) || defined(_LP64)
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)
This page took 0.048634 seconds and 3 git commands to generate.