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

« back to all changes in this revision

Viewing changes to src/gmp/mpn/x86/p6/mmx/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
/* Intel P6/mmx gmp-mparam.h -- Compiler/machine parameter header file.
 
2
 
 
3
Copyright 1991, 1993, 1994, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006
 
4
Free Software Foundation, Inc.
 
5
 
 
6
This file is part of the GNU MP Library.
 
7
 
 
8
The GNU MP Library is free software; you can redistribute it and/or modify
 
9
it under the terms of the GNU Lesser General Public License as published by
 
10
the Free Software Foundation; either version 2.1 of the License, or (at your
 
11
option) any later version.
 
12
 
 
13
The GNU MP Library is distributed in the hope that it will be useful, but
 
14
WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
 
15
or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public
 
16
License for more details.
 
17
 
 
18
You should have received a copy of the GNU Lesser General Public License
 
19
along with the GNU MP Library; see the file COPYING.LIB.  If not, write to
 
20
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
 
21
MA 02110-1301, USA. */
 
22
 
 
23
 
 
24
#define BITS_PER_MP_LIMB 32
 
25
#define BYTES_PER_MP_LIMB 4
 
26
 
 
27
 
 
28
/* NOTE: In a fat binary build SQR_KARATSUBA_THRESHOLD here cannot be more
 
29
   than the value in mpn/x86/p6/gmp-mparam.h.  The latter is used as a hard
 
30
   limit in mpn/x86/p6/sqr_basecase.asm.  */
 
31
 
 
32
 
 
33
/* 1867 MHz Pentium 3/M */
 
34
 
 
35
/* Generated by tuneup.c, 2006-03-21, gcc 3.4 */
 
36
 
 
37
#define MUL_KARATSUBA_THRESHOLD          22
 
38
#define MUL_TOOM3_THRESHOLD              74
 
39
 
 
40
#define SQR_BASECASE_THRESHOLD            0  /* always (native) */
 
41
#define SQR_KARATSUBA_THRESHOLD          42
 
42
#define SQR_TOOM3_THRESHOLD             113
 
43
 
 
44
#define MULLOW_BASECASE_THRESHOLD         4
 
45
#define MULLOW_DC_THRESHOLD              56
 
46
#define MULLOW_MUL_N_THRESHOLD          414
 
47
 
 
48
#define DIV_SB_PREINV_THRESHOLD           0  /* always */
 
49
#define DIV_DC_THRESHOLD                 64
 
50
#define POWM_THRESHOLD                  101
 
51
 
 
52
#define GCD_ACCEL_THRESHOLD               3
 
53
#define GCDEXT_THRESHOLD                 63
 
54
#define JACOBI_BASE_METHOD                1
 
55
 
 
56
#define USE_PREINV_DIVREM_1               1  /* native */
 
57
#define USE_PREINV_MOD_1                  1  /* native */
 
58
#define DIVREM_2_THRESHOLD                0  /* always */
 
59
#define DIVEXACT_1_THRESHOLD              0  /* always (native) */
 
60
#define MODEXACT_1_ODD_THRESHOLD          0  /* always (native) */
 
61
 
 
62
#define GET_STR_DC_THRESHOLD             21
 
63
#define GET_STR_PRECOMPUTE_THRESHOLD     24
 
64
#define SET_STR_THRESHOLD              3625
 
65
 
 
66
#define MUL_FFT_TABLE  { 464, 928, 1920, 4608, 10240, 24576, 98304, 393216, 1572864, 6291456, 0 }
 
67
#define MUL_FFT_MODF_THRESHOLD          480
 
68
#define MUL_FFT_THRESHOLD              3328
 
69
 
 
70
#define SQR_FFT_TABLE  { 464, 928, 1920, 5632, 14336, 40960, 98304, 393216, 1572864, 6291456, 0 }
 
71
#define SQR_FFT_MODF_THRESHOLD          480
 
72
#define SQR_FFT_THRESHOLD              3840