source: git/factory/cf_switches.cc @ 8e066e

spielwiese
Last change on this file since 8e066e was 8e066e, checked in by Hans Schoenemann <hannes@…>, 2 years ago
prefer flint for factorize (multivar, char p), if >=2.7.0
  • Property mode set to 100644
File size: 887 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#if defined(HAVE_NTL) || defined(HAVE_FLINT)
33  On(SW_USE_CHINREM_GCD);
34#endif
35  On(SW_USE_NTL_SORT);
36#ifdef HAVE_FLINT
37  On(SW_USE_FL_GCD_P);
38  On(SW_USE_FL_GCD_0);
39#if (__FLINT_RELEASE >= 20700) 
40  On(SW_USE_FL_FAC_P);
41#endif
42#endif
43  On(SW_USE_EZGCD);
44  On(SW_USE_EZGCD_P);
45  On(SW_USE_QGCD);
46  On(SW_USE_FL_FAC_0);
47  //On(SW_USE_FL_FAC_0A);
48}
49
50INST_VAR CFSwitches cf_glob_switches;
51
Note: See TracBrowser for help on using the repository browser.