source: git/factory/cf_switches.cc

spielwiese
Last change on this file was 60f4b4, checked in by Hans Schoenemann <hannes@…>, 17 months ago
fix: get __FLINT_RELEASE
  • Property mode set to 100644
File size: 938 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#ifdef HAVE_FLINT
21#include <flint/flint.h>
22#endif
23
24/** CFSwitches::CFSwitches ()
25 *
26 * CFSwitches::CFSwitches() - default constructor.
27 *
28 * Turns all switches off.
29 *
30**/
31CFSwitches::CFSwitches ()
32{
33    for ( int i = 0; i < CFSwitchesMax; i++ )
34        switches[i] = false;
35// and set the default (recommended) On-values:
36#if defined(HAVE_NTL) || defined(HAVE_FLINT)
37  On(SW_USE_CHINREM_GCD);
38#endif
39  On(SW_USE_NTL_SORT);
40#ifdef HAVE_FLINT
41  On(SW_USE_FL_GCD_P);
42  On(SW_USE_FL_GCD_0);
43#if (__FLINT_RELEASE >= 20700) 
44  On(SW_USE_FL_FAC_P);
45#endif
46#endif
47  On(SW_USE_EZGCD);
48  On(SW_USE_EZGCD_P);
49  On(SW_USE_QGCD);
50  On(SW_USE_FL_FAC_0);
51  //On(SW_USE_FL_FAC_0A);
52}
53
54INST_VAR CFSwitches cf_glob_switches;
55
Note: See TracBrowser for help on using the repository browser.