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