1 | /* emacs edit mode for this file is -*- C++ -*- */ |
---|
2 | |
---|
3 | /** |
---|
4 | * @file cf_defs.h |
---|
5 | * |
---|
6 | * factory switches. |
---|
7 | **/ |
---|
8 | |
---|
9 | #ifndef INCL_CF_DEFS_H |
---|
10 | #define INCL_CF_DEFS_H |
---|
11 | |
---|
12 | #include "../factory/globaldefs.h" |
---|
13 | // #include "config.h" |
---|
14 | |
---|
15 | /*BEGINPUBLIC*/ |
---|
16 | |
---|
17 | #define LEVELBASE -1000000 |
---|
18 | #define LEVELTRANS -500000 |
---|
19 | #define LEVELQUOT 1000000 |
---|
20 | #define LEVELEXPR 1000001 |
---|
21 | |
---|
22 | #define UndefinedDomain 32000 |
---|
23 | #define GaloisFieldDomain 4 |
---|
24 | #define FiniteFieldDomain 3 |
---|
25 | #define RationalDomain 2 |
---|
26 | #define IntegerDomain 1 |
---|
27 | |
---|
28 | /// set to 1 for computations over Q |
---|
29 | static const int SW_RATIONAL = 0; |
---|
30 | /// set to 1 for symmetric representation over F_q |
---|
31 | static const int SW_SYMMETRIC_FF = 1; |
---|
32 | /// set to 1 to use EZGCD over Z |
---|
33 | static const int SW_USE_EZGCD = 2; |
---|
34 | /// set to 1 to use EZGCD over F_q |
---|
35 | static const int SW_USE_EZGCD_P = 3; |
---|
36 | /// set to 1 to sort factors in a factorization |
---|
37 | static const int SW_USE_NTL_SORT=4; |
---|
38 | /// set to 1 to use modular gcd over Z |
---|
39 | static const int SW_USE_CHINREM_GCD=5; |
---|
40 | /// set to 1 to use Encarnacion GCD over Q(a) |
---|
41 | static const int SW_USE_QGCD=6; |
---|
42 | /// set to 1 to use modular GCD over F_q |
---|
43 | static const int SW_USE_FF_MOD_GCD=7; |
---|
44 | |
---|
45 | /*ENDPUBLIC*/ |
---|
46 | |
---|
47 | #ifdef HAVE_OMALLOC |
---|
48 | #include "omalloc/omalloc.h" |
---|
49 | #define NEW_ARRAY(T,N) (T*)omAlloc((N)*sizeof(T)) |
---|
50 | #define DELETE_ARRAY(P) omFree(P) |
---|
51 | #else |
---|
52 | #define NEW_ARRAY(T,N) new T[N] |
---|
53 | #define DELETE_ARRAY(P) delete[] P |
---|
54 | #endif |
---|
55 | #endif /* ! INCL_CF_DEFS_H */ |
---|