source: git/factory/cf_defs.h @ d0dbd7

fieker-DuValspielwiese
Last change on this file since d0dbd7 was d0dbd7, checked in by Hans Schoenemann <hannes@…>, 6 years ago
chg: more NEW_ARRAY/DELETE_ARRY in factory
  • 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 "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
28static const int SW_RATIONAL = 0;
29/// set to 1 for symmetric representation over F_q
30static const int SW_SYMMETRIC_FF = 1;
31/// set to 1 to use EZGCD over Z
32static const int SW_USE_EZGCD = 2;
33/// set to 1 to use EZGCD over F_q
34static const int SW_USE_EZGCD_P = 3;
35/// set to 1 to sort factors in a factorization
36static const int SW_USE_NTL_SORT=4;
37/// set to 1 to use modular gcd over Z
38static const int SW_USE_CHINREM_GCD=5;
39/// set to 1 to use Encarnacion GCD over Q(a)
40static const int SW_USE_QGCD=6;
41/// set to 1 to use modular GCD over F_q
42static 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 */
Note: See TracBrowser for help on using the repository browser.