1 diff -urN gmp-4.1.2.org/configure gmp-4.1.2/configure
2 --- gmp-4.1.2.org/configure 2003-11-18 18:51:52.000000000 +0100
3 +++ gmp-4.1.2/configure 2003-11-18 18:52:08.000000000 +0100
15 diff -urN gmp-4.1.2.org/configure.in gmp-4.1.2/configure.in
16 --- gmp-4.1.2.org/configure.in 2003-11-18 18:51:52.000000000 +0100
17 +++ gmp-4.1.2/configure.in 2003-11-18 18:52:54.000000000 +0100
22 + x86_64*-*-*|amd64*-*-*)
28 diff -urN gmp-4.1.2.org/longlong.h gmp-4.1.2/longlong.h
29 --- gmp-4.1.2.org/longlong.h 2003-11-18 18:51:52.000000000 +0100
30 +++ gmp-4.1.2/longlong.h 2003-11-18 18:52:08.000000000 +0100
35 -#if defined (__x86_64__) && W_TYPE_SIZE == 64
36 +#if defined (__x86_64__) && !defined (NO_ASM) && W_TYPE_SIZE == 64
37 #define add_ssaaaa(sh, sl, ah, al, bh, bl) \
38 __asm__ ("addq %5,%1\n\tadcq %3,%0" \
39 : "=r" ((UDItype)(sh)), "=&r" ((UDItype)(sl)) \
42 : "=a" (w0), "=d" (w1) \
43 : "%0" ((UDItype)(u)), "rm" ((UDItype)(v)))
45 #define udiv_qrnnd(q, r, n1, n0, dx) /* d renamed to dx avoiding "=d" */\
46 __asm__ ("divq %4" /* stringification in K&R C */ \
47 : "=a" (q), "=d" (r) \
48 : "0" ((UDItype)(n0)), "1" ((UDItype)(n1)), "rm" ((UDItype)(dx)))
50 #define count_leading_zeros(count, x) \
55 #define count_trailing_zeros(count, x) \
59 - __asm__ ("bsfq %1,%0" : "=r" (count) : "rm" ((UDItype)(x))); \
60 + __asm__ ("bsfq %1,%0" : "=r" (__cbtmp) : "rm" ((UDItype)(x))); \
61 + (count) = __cbtmp; \
65 diff -urN gmp-4.1.2.org/mpn/x86_64/gmp-mparam.h gmp-4.1.2/mpn/x86_64/gmp-mparam.h
66 --- gmp-4.1.2.org/mpn/x86_64/gmp-mparam.h 1970-01-01 01:00:00.000000000 +0100
67 +++ gmp-4.1.2/mpn/x86_64/gmp-mparam.h 2003-11-18 18:52:08.000000000 +0100
69 +/* gmp-mparam.h -- Compiler/machine parameter header file.
71 +Copyright (C) 1991, 1993, 1994 Free Software Foundation, Inc.
73 +This file is part of the GNU MP Library.
75 +The GNU MP Library is free software; you can redistribute it and/or modify
76 +it under the terms of the GNU Lesser General Public License as published by
77 +the Free Software Foundation; either version 2.1 of the License, or (at your
78 +option) any later version.
80 +The GNU MP Library is distributed in the hope that it will be useful, but
81 +WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
82 +or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
83 +License for more details.
85 +You should have received a copy of the GNU Lesser General Public License
86 +along with the GNU MP Library; see the file COPYING.LIB. If not, write to
87 +the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
88 +MA 02111-1307, USA. */
90 +#define BITS_PER_MP_LIMB 64
91 +#define BYTES_PER_MP_LIMB 8
92 +#define BITS_PER_LONGINT 64
93 +#define BITS_PER_INT 32
94 +#define BITS_PER_SHORTINT 16
95 +#define BITS_PER_CHAR 8