source: git/factory/cf_switches.cc @ 6e12a45

fieker-DuValspielwiese
Last change on this file since 6e12a45 was 6ca326, checked in by Hans Schoenemann <hannes@…>, 5 years ago
chg: gcd over QQ via flint
  • Property mode set to 100644
File size: 746 bytes
Line 
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_defs.h"
18#include "cf_switches.h"
19
20/** CFSwitches::CFSwitches ()
21 *
22 * CFSwitches::CFSwitches() - default constructor.
23 *
24 * Turns all switches off.
25 *
26**/
27CFSwitches::CFSwitches ()
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
33  On(SW_USE_CHINREM_GCD);
34  On(SW_USE_NTL_SORT);
35#endif
36#ifdef HAVE_FLINT
37  On(SW_USE_FL_GCD_P);
38  On(SW_USE_FL_GCD_0);
39#endif
40  On(SW_USE_EZGCD);
41  On(SW_USE_EZGCD_P);
42  On(SW_USE_QGCD);
43}
44
45INST_VAR CFSwitches cf_glob_switches;
46
Note: See TracBrowser for help on using the repository browser.