1
/* AMD K6 gmp-mparam.h -- Compiler/machine parameter header file.
3
Copyright 1991, 1993, 1994, 2000, 2001 Free Software Foundation, Inc.
5
This file is part of the GNU MP Library.
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.
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.
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. */
22
#define BITS_PER_MP_LIMB 32
23
#define BYTES_PER_MP_LIMB 4
27
#define UMUL_TIME 3 /* cycles */
31
#define UDIV_TIME 20 /* cycles */
34
/* udiv_qrnnd_preinv measures about 22 and haven't found any assembler that
35
can get much under 20. Plain divisions are preferred. */
36
#ifndef UDIV_NORM_PREINV_TIME
37
#define UDIV_NORM_PREINV_TIME 22 /* cycles */
40
/* bsfl takes 12-27 cycles, put an average for uniform random numbers */
41
#ifndef COUNT_TRAILING_ZEROS_TIME
42
#define COUNT_TRAILING_ZEROS_TIME 14 /* cycles */
46
/* 333MHz K6-2, gcc 2.95.3 */
48
/* Generated by tuneup.c, 2001-11-29, gcc 3.0 */
50
#define KARATSUBA_MUL_THRESHOLD 20
51
#define TOOM3_MUL_THRESHOLD 129
53
#define BASECASE_SQR_THRESHOLD 0
54
#define KARATSUBA_SQR_THRESHOLD 30
55
#define TOOM3_SQR_THRESHOLD 186
57
#define SB_PREINV_THRESHOLD MP_SIZE_T_MAX
58
#define DC_THRESHOLD 69
59
#define POWM_THRESHOLD 91
61
#define GCD_ACCEL_THRESHOLD 3
62
#define GCDEXT_THRESHOLD 51
64
#define USE_PREINV_MOD_1 1 /* (native) */
65
#define DIVREM_2_THRESHOLD MP_SIZE_T_MAX
66
#define DIVEXACT_1_THRESHOLD 0
67
#define MODEXACT_1_ODD_THRESHOLD 0
69
#define FFT_MUL_TABLE { 496, 1184, 1920, 4608, 14336, 40960, 0 }
70
#define FFT_MODF_MUL_THRESHOLD 440
71
#define FFT_MUL_THRESHOLD 3840
73
#define FFT_SQR_TABLE { 528, 1184, 2176, 5632, 14336, 40960, 0 }
74
#define FFT_MODF_SQR_THRESHOLD 472
75
#define FFT_SQR_THRESHOLD 3840