source: git/factory/cf_defs.h @ 756676e

spielwiese
Last change on this file since 756676e was 756676e, checked in by Reimer Behrends <behrends@…>, 5 years ago
Add includes for globaldefs.2
  • Property mode set to 100644
File size: 1.3 KB
Line 
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
29static const int SW_RATIONAL = 0;
30/// set to 1 for symmetric representation over F_q
31static const int SW_SYMMETRIC_FF = 1;
32/// set to 1 to use EZGCD over Z
33static const int SW_USE_EZGCD = 2;
34/// set to 1 to use EZGCD over F_q
35static const int SW_USE_EZGCD_P = 3;
36/// set to 1 to sort factors in a factorization
37static const int SW_USE_NTL_SORT=4;
38/// set to 1 to use modular gcd over Z
39static const int SW_USE_CHINREM_GCD=5;
40/// set to 1 to use Encarnacion GCD over Q(a)
41static const int SW_USE_QGCD=6;
42/// set to 1 to use modular GCD over F_q
43static 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 */
Note: See TracBrowser for help on using the repository browser.