-
Notifications
You must be signed in to change notification settings - Fork 8
/
ecm-params.h
72 lines (57 loc) · 2.38 KB
/
ecm-params.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
/* This file sets tuning parameters for GMP-ECM.
According to the preprocessor macros obtained with gcc -dM -E -xc /dev/null
or gcc -march=native -dM -E -xc /dev/null
or gcc -mtune=native -dM -E -xc /dev/null, it includes one file or the
other one. */
#if defined (PARAMS00)
#define ECM_TUNE_CASE "generic/params00.h"
#include "generic/params00.h"
#elif defined (PARAMS11)
#define ECM_TUNE_CASE "generic/params11.h"
#include "generic/params11.h"
#elif defined (PARAMS22)
#define ECM_TUNE_CASE "generic/params22.h"
#include "generic/params22.h"
#elif defined (PARAMS33)
#define ECM_TUNE_CASE "generic/params33.h"
#include "generic/params33.h"
#elif defined(__x86_64)
#define ECM_TUNE_CASE "x86_64/params.h"
#include "x86_64/params.h"
#elif defined (__tune_pentiumpro__) || defined (__tune_i686__) || defined (__i386) /* we consider all other 386's here */
#define ECM_TUNE_CASE "x86/params.h"
#include "x86/params.h"
#elif defined (__ia64) || defined (__itanium__) || defined (__tune_ia64__)
/* Threshold for IA64 */
#define ECM_TUNE_CASE "ia64/params.h"
#include "ia64/params.h"
#elif defined (__arm__) /* Threshold for ARM */
#define ECM_TUNE_CASE "arm/params.h"
#include "arm/params.h"
#elif defined (__PPC64__) /* Threshold for 64-bit PowerPC, test it before
32-bit PowerPC since _ARCH_PPC is also defined
on 64-bit PowerPC */
#define ECM_TUNE_CASE "powerpc64/params.h"
#include "powerpc64/params.h"
#elif defined (_ARCH_PPC) /* Threshold for 32-bit PowerPC */
#define ECM_TUNE_CASE "powerpc32/params.h"
#include "powerpc32/params.h"
#elif defined (__sparc_v9__) /* Threshold for 64-bits Sparc */
#define ECM_TUNE_CASE "sparc64/params.h"
#include "sparc64/params.h"
#elif defined (__hppa__) /* Threshold for HPPA */
#define ECM_TUNE_CASE "hppa/params.h"
#include "hppa/params.h"
#elif defined (__mips__) /* MIPS */
#define ECM_TUNE_CASE "mips/params.h"
#include "mips/params.h"
#else
#define ECM_TUNE_CASE "default"
#endif
/****************************************************************
* Default values of Threshold. *
* Must be included in any case: it checks, for every constant, *
* if it has been defined, and it sets it to a default value if *
* it was not previously defined. *
****************************************************************/
#include "generic/params.h"