My Project  debian-1:4.1.2-p1+ds-2
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 "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 */
static const int SW_USE_QGCD
set to 1 to use Encarnacion GCD over Q(a)
Definition: cf_defs.h:41
static const int SW_USE_CHINREM_GCD
set to 1 to use modular gcd over Z
Definition: cf_defs.h:39
static const int SW_USE_EZGCD_P
set to 1 to use EZGCD over F_q
Definition: cf_defs.h:35
static const int SW_RATIONAL
set to 1 for computations over Q
Definition: cf_defs.h:29
static const int SW_USE_NTL_SORT
set to 1 to sort factors in a factorization
Definition: cf_defs.h:37
static const int SW_USE_FF_MOD_GCD
set to 1 to use modular GCD over F_q
Definition: cf_defs.h:43
static const int SW_USE_EZGCD
set to 1 to use EZGCD over Z
Definition: cf_defs.h:33
static const int SW_SYMMETRIC_FF
set to 1 for symmetric representation over F_q
Definition: cf_defs.h:31