]> git.pld-linux.org Git - packages/gmp.git/blob - gmp-amd64.patch
- typo
[packages/gmp.git] / gmp-amd64.patch
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
4 @@ -2169,6 +2169,10 @@
5      path="i960"
6      ;;
7  
8 +  x86_64*-*-*)
9 +    path="x86_64"
10 +    ;;
11 +
12    ia64*-*-*)
13      path="ia64"
14  
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
18 @@ -533,6 +533,9 @@
19      path="i960"
20      ;;
21  
22 +  x86_64*-*-*|amd64*-*-*)
23 +    path="x86_64"
24 +    ;;
25  
26    ia64*-*-*)
27      path="ia64"
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
31 @@ -687,7 +687,7 @@
32  #endif
33  #endif /* 80x86 */
34  
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))                \
40 @@ -702,10 +702,12 @@
41    __asm__ ("mulq %3"                                                   \
42            : "=a" (w0), "=d" (w1)                                       \
43            : "%0" ((UDItype)(u)), "rm" ((UDItype)(v)))
44 +#if 0
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)))
49 +#endif
50  #define count_leading_zeros(count, x)                                  \
51    do {                                                                 \
52      UDItype __cbtmp;                                                   \
53 @@ -715,8 +717,10 @@
54    } while (0)
55  #define count_trailing_zeros(count, x)                                 \
56    do {                                                                 \
57 +    UDItype __cbtmp;                                                    \
58      ASSERT ((x) != 0);                                                 \
59 -    __asm__ ("bsfq %1,%0" : "=r" (count) : "rm" ((UDItype)(x)));       \
60 +    __asm__ ("bsfq %1,%0" : "=r" (__cbtmp) : "rm" ((UDItype)(x)));     \
61 +    (count) = __cbtmp;                                                  \
62    } while (0)
63  #endif /* x86_64 */
64  
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
68 @@ -0,0 +1,27 @@
69 +/* gmp-mparam.h -- Compiler/machine parameter header file.
70 +
71 +Copyright (C) 1991, 1993, 1994 Free Software Foundation, Inc.
72 +
73 +This file is part of the GNU MP Library.
74 +
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.
79 +
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.
84 +
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. */
89 +
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
This page took 0.047803 seconds and 3 git commands to generate.