~ubuntu-branches/ubuntu/quantal/gclcvs/quantal

« back to all changes in this revision

Viewing changes to gmp3/mpn/x86/k6/gmp-mparam.h

  • Committer: Bazaar Package Importer
  • Author(s): Camm Maguire
  • Date: 2004-06-24 15:13:46 UTC
  • Revision ID: james.westby@ubuntu.com-20040624151346-xh0xaaktyyp7aorc
Tags: 2.7.0-26
C_GC_OFFSET is 2 on m68k-linux

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* AMD K6 gmp-mparam.h -- Compiler/machine parameter header file.
 
2
 
 
3
Copyright 1991, 1993, 1994, 2000, 2001 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
#define BITS_PER_MP_LIMB 32
 
23
#define BYTES_PER_MP_LIMB 4
 
24
 
 
25
 
 
26
#ifndef UMUL_TIME
 
27
#define UMUL_TIME   3   /* cycles */
 
28
#endif
 
29
 
 
30
#ifndef UDIV_TIME
 
31
#define UDIV_TIME   20  /* cycles */
 
32
#endif
 
33
 
 
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 */
 
38
#endif
 
39
 
 
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 */
 
43
#endif
 
44
 
 
45
 
 
46
/* 333MHz K6-2, gcc 2.95.3 */
 
47
 
 
48
/* Generated by tuneup.c, 2001-11-29, gcc 3.0 */
 
49
 
 
50
#define KARATSUBA_MUL_THRESHOLD       20
 
51
#define TOOM3_MUL_THRESHOLD          129
 
52
 
 
53
#define BASECASE_SQR_THRESHOLD         0
 
54
#define KARATSUBA_SQR_THRESHOLD       30
 
55
#define TOOM3_SQR_THRESHOLD          186
 
56
 
 
57
#define SB_PREINV_THRESHOLD        MP_SIZE_T_MAX
 
58
#define DC_THRESHOLD                  69
 
59
#define POWM_THRESHOLD                91
 
60
 
 
61
#define GCD_ACCEL_THRESHOLD            3
 
62
#define GCDEXT_THRESHOLD              51
 
63
 
 
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
 
68
 
 
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
 
72
 
 
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