Annotation of OpenXM_contrib/gmp/mpn/x86/pentium/gmp-mparam.h, Revision 1.1.1.1
1.1 maekawa 1: /* Intel P54 gmp-mparam.h -- Compiler/machine parameter header file.
2:
3: Copyright (C) 1991, 1993, 1994, 1999, 2000 Free Software Foundation, Inc.
4:
5: This file is part of the GNU MP Library.
6:
7: The GNU MP Library is free software; you can redistribute it and/or modify
8: it under the terms of the GNU Lesser General Public License as published by
9: the Free Software Foundation; either version 2.1 of the License, or (at your
10: option) any later version.
11:
12: The GNU MP Library is distributed in the hope that it will be useful, but
13: WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
14: or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
15: License for more details.
16:
17: You should have received a copy of the GNU Lesser General Public License
18: along with the GNU MP Library; see the file COPYING.LIB. If not, write to
19: the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
20: MA 02111-1307, USA. */
21:
22:
23: #define BITS_PER_MP_LIMB 32
24: #define BYTES_PER_MP_LIMB 4
25: #define BITS_PER_LONGINT 32
26: #define BITS_PER_INT 32
27: #define BITS_PER_SHORTINT 16
28: #define BITS_PER_CHAR 8
29:
30:
31: #ifndef UMUL_TIME
32: #define UMUL_TIME 9 /* cycles */
33: #endif
34: #ifndef UDIV_TIME
35: #define UDIV_TIME 41 /* cycles */
36: #endif
37:
38: /* bsf takes 18-42 cycles, put an average for uniform random numbers */
39: #ifndef COUNT_TRAILING_ZEROS_TIME
40: #define COUNT_TRAILING_ZEROS_TIME 20 /* cycles */
41: #endif
42:
43:
44: /* Generated by tuneup.c, 2000-07-06. */
45:
46: #ifndef KARATSUBA_MUL_THRESHOLD
47: #define KARATSUBA_MUL_THRESHOLD 14
48: #endif
49: #ifndef TOOM3_MUL_THRESHOLD
50: #define TOOM3_MUL_THRESHOLD 179
51: #endif
52:
53: #ifndef KARATSUBA_SQR_THRESHOLD
54: #define KARATSUBA_SQR_THRESHOLD 22
55: #endif
56: #ifndef TOOM3_SQR_THRESHOLD
57: #define TOOM3_SQR_THRESHOLD 153
58: #endif
59:
60: #ifndef BZ_THRESHOLD
61: #define BZ_THRESHOLD 46
62: #endif
63:
64: #ifndef FIB_THRESHOLD
65: #define FIB_THRESHOLD 110
66: #endif
67:
68: #ifndef POWM_THRESHOLD
69: #define POWM_THRESHOLD 13
70: #endif
71:
72: #ifndef GCD_ACCEL_THRESHOLD
73: #define GCD_ACCEL_THRESHOLD 4
74: #endif
75: #ifndef GCDEXT_THRESHOLD
76: #define GCDEXT_THRESHOLD 25
77: #endif
78:
79: #ifndef FFT_MUL_TABLE
80: #define FFT_MUL_TABLE { 496, 928, 1920, 4608, 14336, 40960, 0 }
81: #endif
82: #ifndef FFT_MODF_MUL_THRESHOLD
83: #define FFT_MODF_MUL_THRESHOLD 512
84: #endif
85: #ifndef FFT_MUL_THRESHOLD
86: #define FFT_MUL_THRESHOLD 3840
87: #endif
88:
89: #ifndef FFT_SQR_TABLE
90: #define FFT_SQR_TABLE { 496, 1184, 1920, 5632, 14336, 40960, 0 }
91: #endif
92: #ifndef FFT_MODF_SQR_THRESHOLD
93: #define FFT_MODF_SQR_THRESHOLD 512
94: #endif
95: #ifndef FFT_SQR_THRESHOLD
96: #define FFT_SQR_THRESHOLD 3840
97: #endif
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>