~ubuntu-branches/ubuntu/intrepid/ecl/intrepid

« back to all changes in this revision

Viewing changes to src/gmp/mpn/alpha/ev5/gmp-mparam.h

  • Committer: Bazaar Package Importer
  • Author(s): Peter Van Eynde
  • Date: 2007-04-09 11:51:51 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20070409115151-ql8cr0kalzx1jmla
Tags: 0.9i-20070324-2
Upload to unstable. 

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* Alpha EV5 gmp-mparam.h -- Compiler/machine parameter header file.
2
2
 
3
 
Copyright 1991, 1993, 1994, 1999, 2000, 2001, 2002 Free Software Foundation,
4
 
Inc.
 
3
Copyright 1991, 1993, 1994, 1999, 2000, 2001, 2002, 2004, 2005, 2006 Free
 
4
Software Foundation, Inc.
5
5
 
6
6
This file is part of the GNU MP Library.
7
7
 
17
17
 
18
18
You should have received a copy of the GNU Lesser General Public License
19
19
along with the GNU MP Library; see the file COPYING.LIB.  If not, write to
20
 
the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
21
 
MA 02111-1307, USA. */
 
20
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
 
21
MA 02110-1301, USA. */
22
22
 
23
23
#define BITS_PER_MP_LIMB 64
24
24
#define BYTES_PER_MP_LIMB 8
25
25
 
26
26
 
27
 
/* 600MHz 21164A */
28
 
 
29
 
/* Generated by tuneup.c, 2002-02-08, gcc 2.95 */
30
 
 
31
 
#define MUL_KARATSUBA_THRESHOLD          14
32
 
#define MUL_TOOM3_THRESHOLD              81
33
 
 
34
 
#define SQR_BASECASE_THRESHOLD            4
35
 
#define SQR_KARATSUBA_THRESHOLD          28
36
 
#define SQR_TOOM3_THRESHOLD              87
 
27
/* 600 MHz 21164A */
 
28
 
 
29
/* Generated by tuneup.c, 2006-03-21, gcc 3.3 */
 
30
 
 
31
#define MUL_KARATSUBA_THRESHOLD          16
 
32
#define MUL_TOOM3_THRESHOLD              53
 
33
 
 
34
#define SQR_BASECASE_THRESHOLD            5
 
35
#define SQR_KARATSUBA_THRESHOLD          26
 
36
#define SQR_TOOM3_THRESHOLD              53
 
37
 
 
38
#define MULLOW_BASECASE_THRESHOLD         0  /* always */
 
39
#define MULLOW_DC_THRESHOLD              56
 
40
#define MULLOW_MUL_N_THRESHOLD          268
37
41
 
38
42
#define DIV_SB_PREINV_THRESHOLD           0  /* preinv always */
39
 
#define DIV_DC_THRESHOLD                 48
40
 
#define POWM_THRESHOLD                   87
 
43
#define DIV_DC_THRESHOLD                 52
 
44
#define POWM_THRESHOLD                   89
41
45
 
42
46
#define GCD_ACCEL_THRESHOLD               3
43
47
#define GCDEXT_THRESHOLD                  0  /* always */
53
57
#define DIVEXACT_1_THRESHOLD              0  /* always */
54
58
#define MODEXACT_1_ODD_THRESHOLD          0  /* always */
55
59
 
56
 
#define GET_STR_DC_THRESHOLD       20
57
 
#define GET_STR_PRECOMPUTE_THRESHOLD     36
58
 
#define SET_STR_THRESHOLD              3664
59
 
 
60
 
#define MUL_FFT_TABLE  { 496, 1056, 2624, 4352, 11264, 36864, 0 }
61
 
#define MUL_FFT_MODF_THRESHOLD          592
62
 
#define MUL_FFT_THRESHOLD              5248
63
 
 
64
 
#define SQR_FFT_TABLE  { 496, 992, 2752, 3840, 11264, 28672, 0 }
65
 
#define SQR_FFT_MODF_THRESHOLD          592
66
 
#define SQR_FFT_THRESHOLD              4736
 
60
#define GET_STR_DC_THRESHOLD             19
 
61
#define GET_STR_PRECOMPUTE_THRESHOLD     23
 
62
#define SET_STR_THRESHOLD              4385
 
63
 
 
64
/* The following values are old, we only had access to GNU/Linux ev5 machines
 
65
   and the Linux kernel doesn't maintain the cycle counter properly.  */
 
66
 
 
67
#define MUL_FFT_TABLE  { 400, 864, 1856, 3840, 7168, 20480, 81920, 196608, 786432, 0 }
 
68
#define MUL_FFT_MODF_THRESHOLD          392
 
69
#define MUL_FFT_THRESHOLD              2176
 
70
 
 
71
#define SQR_FFT_TABLE  { 432, 928, 1856, 3840, 9216, 20480, 81920, 196608, 786432, 0 }
 
72
#define SQR_FFT_MODF_THRESHOLD          408
 
73
#define SQR_FFT_THRESHOLD              2688