My Project  debian-1:4.1.1-p2+ds-4build3
cf_switches.cc
Go to the documentation of this file.
1 /* emacs edit mode for this file is -*- C++ -*- */
2 
3 /**
4  *
5  * @file cf_switches.cc
6  *
7  * definition of class CFSwitches.
8  *
9  * Used by: cf_globals.cc
10  *
11 **/
12 
13 
14 #include "config.h"
15 
16 
17 #include "cf_switches.h"
18 #include "cf_defs.h"
19 
20 /** CFSwitches::CFSwitches ()
21  *
22  * CFSwitches::CFSwitches() - default constructor.
23  *
24  * Turns all switches off.
25  *
26 **/
28 {
29  for ( int i = 0; i < CFSwitchesMax; i++ )
30  switches[i] = false;
31 // and set the default (recommended) On-values:
32 #ifdef HAVE_NTL
34  //Off(SW_USE_NTL_SORT);
35 #endif
37  //On(SW_USE_EZGCD_P); // still testing
38  On(SW_USE_QGCD);
39 }
40 
42 
CFSwitchesMax
const int CFSwitchesMax
const int CFSwitchesMax
Definition: cf_switches.h:22
SW_USE_EZGCD
static const int SW_USE_EZGCD
set to 1 to use EZGCD over Z
Definition: cf_defs.h:32
i
int i
Definition: cfEzgcd.cc:125
CFSwitches::CFSwitches
CFSwitches()
CFSwitches::CFSwitches ()
Definition: cf_switches.cc:27
cf_defs.h
SW_USE_CHINREM_GCD
static const int SW_USE_CHINREM_GCD
set to 1 to use modular gcd over Z
Definition: cf_defs.h:38
cf_switches.h
cf_glob_switches
CFSwitches cf_glob_switches
CFSwitches cf_glob_switches;.
Definition: cf_switches.cc:41
CFSwitches::switches
bool switches[CFSwitchesMax]
Definition: cf_switches.h:42
SW_USE_QGCD
static const int SW_USE_QGCD
set to 1 to use Encarnacion GCD over Q(a)
Definition: cf_defs.h:40
CFSwitches::On
void On(int s)
switch 's' on
Definition: cf_switches.h:51
CFSwitches
class CFSwitches
Definition: cf_switches.h:40