- Timestamp:
- Jan 24, 2019, 2:32:29 PM (5 years ago)
- Branches:
- (u'spielwiese', '6e5adcba05493683b94648c659a729c189812c77')
- Children:
- 08394f319ba420091cccad7e025c3f7cac04c373
- Parents:
- 5abb79fd2458b47b21d297f2c8b26f285ac9546f756676ef1fcf4cff300fb1607a6d21293b253245
- git-author:
- Hans Schoenemann <hannes@mathematik.uni-kl.de>2019-01-24 14:32:29+01:00
- git-committer:
- GitHub <noreply@github.com>2019-01-24 14:32:29+01:00
- Location:
- kernel
- Files:
-
- 38 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/GBEngine/f5gb.cc
r5abb79f r172d852 29 29 #define pDeg(A) p_Deg(A,currRing) 30 30 31 int notInG = 0;32 int numberOfRules = 0;33 int reductionsToZero = 0;34 int reductionTime = 0;35 int spolsTime = 0;36 int highestDegree = 0;37 int degreeBound = 0;38 int numberUsefulPairs = 0;39 int numberUselessPairs = 0;40 int numberUsefulPairsMinDeg = 0;41 int highestDegreeGBCriticalPair = 0;42 int numberRejectedF5CriticalPairs = 0;43 int numberOfReductions = 0;44 int numberOfSpolys = 0;31 VAR int notInG = 0; 32 VAR int numberOfRules = 0; 33 VAR int reductionsToZero = 0; 34 VAR int reductionTime = 0; 35 VAR int spolsTime = 0; 36 VAR int highestDegree = 0; 37 VAR int degreeBound = 0; 38 VAR int numberUsefulPairs = 0; 39 VAR int numberUselessPairs = 0; 40 VAR int numberUsefulPairsMinDeg = 0; 41 VAR int highestDegreeGBCriticalPair = 0; 42 VAR int numberRejectedF5CriticalPairs = 0; 43 VAR int numberOfReductions = 0; 44 VAR int numberOfSpolys = 0; 45 45 /* 46 46 ==================================================================== … … 152 152 // in the list critPairs 153 153 criticalPair(gPrev, critPairs, lTag, rTag, rules, rejectedGBList, plus); 154 staticLList* sPolyList = new LList();154 STATIC_VAR LList* sPolyList = new LList(); 155 155 //sPolyList->print(); 156 156 // labeled polynomials which have passed reduction() and have to be added to list gPrev 157 staticLList* completed = new LList();157 STATIC_VAR LList* completed = new LList(); 158 158 // the reduced labeled polynomials which are returned from subalgorithm reduction() 159 staticLList* reducedLPolys = new LList();159 STATIC_VAR LList* reducedLPolys = new LList(); 160 160 // while there are critical pairs to be further checked and deleted/computed 161 161 while(NULL != critPairs->getFirst()) { -
kernel/GBEngine/janet.cc
r5abb79f r172d852 27 27 28 28 //------GLOBALS------- 29 staticint /*m_s,v_s,vectorized,VarN1,*/offset;30 staticjList *T,*Q;31 staticTreeM *G;29 STATIC_VAR int /*m_s,v_s,vectorized,VarN1,*/offset; 30 STATIC_VAR jList *T,*Q; 31 STATIC_VAR TreeM *G; 32 32 // static Poly *phD; 33 staticNodeM *FreeNodes;34 staticint degree_compatible;35 staticint (*ListGreatMove)(jList *,jList *,poly);36 staticint Mask[8]={0x80,0x40,0x20,0x10,0x8,0x4,0x2,0x1};33 STATIC_VAR NodeM *FreeNodes; 34 STATIC_VAR int degree_compatible; 35 STATIC_VAR int (*ListGreatMove)(jList *,jList *,poly); 36 STATIC_VAR int Mask[8]={0x80,0x40,0x20,0x10,0x8,0x4,0x2,0x1}; 37 37 38 38 //#define DebugPrint … … 40 40 //#define pow_(x) pTotaldegree((x)) 41 41 //#define pow_(x) p_Deg((x,currRing)) 42 pFDegProc jDeg;42 VAR pFDegProc jDeg; 43 43 #define pow_(x) jDeg((x),currRing) 44 44 … … 753 753 } 754 754 755 staticPoly *temp_l;755 STATIC_VAR Poly *temp_l; 756 756 757 757 NodeM* create() … … 969 969 } 970 970 971 staticPoly *h/*,*f*/;971 STATIC_VAR Poly *h/*,*f*/; 972 972 973 973 #if 0 -
kernel/GBEngine/kspoly.cc
r5abb79f r172d852 25 25 26 26 #ifdef KDEBUG 27 int red_count = 0;28 int create_count = 0;27 VAR int red_count = 0; 28 VAR int create_count = 0; 29 29 // define this if reductions are reported on TEST_OPT_DEBUG 30 30 #define TEST_OPT_DEBUG_RED -
kernel/GBEngine/kstd1.cc
r5abb79f r172d852 40 40 41 41 /* the list of all options which give a warning by test */ 42 BITSET kOptions=Sy_bit(OPT_PROT) /* 0 */42 VAR BITSET kOptions=Sy_bit(OPT_PROT) /* 0 */ 43 43 |Sy_bit(OPT_REDSB) /* 1 */ 44 44 |Sy_bit(OPT_NOT_SUGAR) /* 3 */ … … 55 55 /* the list of all options which may be used by option and test */ 56 56 /* defintion of ALL options: libpolys/misc/options.h */ 57 BITSET validOpts=Sy_bit(0)57 VAR BITSET validOpts=Sy_bit(0) 58 58 |Sy_bit(1) 59 59 |Sy_bit(2) // obachman 10/00: replaced by notBucket … … 2061 2061 } 2062 2062 2063 intvec * kModW, * kHomW;2063 VAR intvec * kModW, * kHomW; 2064 2064 2065 2065 long kModDeg(poly p, ring r) -
kernel/GBEngine/kstd1.h
r5abb79f r172d852 45 45 //extern int syzComp; 46 46 /*stop building pairs after that component --> ideals.cc, syz.cc */ 47 externint LazyPass,LazyDegree,Kstd1_mu,Kstd1_deg;47 EXTERN_VAR int LazyPass,LazyDegree,Kstd1_mu,Kstd1_deg; 48 48 /*parameters for Lazy or global stops --> ipshell.cc, grammar.y*/ 49 externBITSET kOptions;49 EXTERN_VAR BITSET kOptions; 50 50 /*the known test options (a constant)*/ 51 externBITSET validOpts;51 EXTERN_VAR BITSET validOpts; 52 52 53 53 void initMora(ideal F,kStrategy strat); … … 64 64 65 65 66 externintvec * kModW;67 externintvec * kHomW;66 EXTERN_VAR intvec * kModW; 67 EXTERN_VAR intvec * kHomW; 68 68 69 69 -
kernel/GBEngine/kstd2.cc
r5abb79f r172d852 47 47 // counts sba's reduction steps 48 48 #if SBA_PRINT_REDUCTION_STEPS 49 long sba_reduction_steps;50 long sba_interreduction_steps;49 VAR long sba_reduction_steps; 50 VAR long sba_interreduction_steps; 51 51 #endif 52 52 #if SBA_PRINT_OPERATIONS 53 long sba_operations;54 long sba_interreduction_operations;53 VAR long sba_operations; 54 VAR long sba_interreduction_operations; 55 55 #endif 56 56 … … 78 78 #endif 79 79 80 int (*test_PosInT)(const TSet T,const int tl,LObject &h);81 int (*test_PosInL)(const LSet set, const int length,80 VAR int (*test_PosInT)(const TSet T,const int tl,LObject &h); 81 VAR int (*test_PosInL)(const LSet set, const int length, 82 82 LObject* L,const kStrategy strat); 83 83 -
kernel/GBEngine/kstdfac.cc
r5abb79f r172d852 19 19 #include "kernel/GBEngine/kstdfac.h" 20 20 21 int strat_nr=0;21 VAR int strat_nr=0; 22 22 /*3 23 23 * copy o->T to n->T, assumes that n->S is already copied -
kernel/GBEngine/kutil.cc
r5abb79f r172d852 86 86 #endif 87 87 88 denominator_list DENOMINATOR_LIST=NULL;88 VAR denominator_list DENOMINATOR_LIST=NULL; 89 89 90 90 … … 234 234 235 235 236 int HCord;237 int Kstd1_deg;238 int Kstd1_mu=32000;236 VAR int HCord; 237 VAR int Kstd1_deg; 238 VAR int Kstd1_mu=32000; 239 239 240 240 /*2 … … 762 762 } 763 763 764 staticBOOLEAN sloppy_max = FALSE;764 STATIC_VAR BOOLEAN sloppy_max = FALSE; 765 765 BOOLEAN kTest_T(TObject * T, ring strat_tailRing, int i, char TN) 766 766 { -
kernel/GBEngine/kutil.h
r5abb79f r172d852 60 60 61 61 struct denominator_list_s{number n; denominator_list next;}; 62 externdenominator_list DENOMINATOR_LIST;62 EXTERN_VAR denominator_list DENOMINATOR_LIST; 63 63 64 64 class sTObject … … 174 174 }; 175 175 176 externint strat_nr;176 EXTERN_VAR int strat_nr; 177 177 178 178 class sLObject : public sTObject … … 263 263 264 264 265 externint HCord;265 EXTERN_VAR int HCord; 266 266 267 267 class skStrategy … … 866 866 ideal bbaShift(ideal F, ideal Q,intvec *w,intvec *hilb,kStrategy strat); 867 867 // test syz strategy: // will be removed soon 868 externint (*test_PosInT)(const TSet T,const int tl,LObject &h);869 externint (*test_PosInL)(const LSet set, const int length,868 EXTERN_VAR int (*test_PosInT)(const TSet T,const int tl,LObject &h); 869 EXTERN_VAR int (*test_PosInL)(const LSet set, const int length, 870 870 LObject* L,const kStrategy strat); 871 871 -
kernel/GBEngine/syz.h
r5abb79f r172d852 115 115 void syKillEmptyEntres(resolvente res,int length); 116 116 117 externint * currcomponents;118 externlong * currShiftedComponents;117 EXTERN_VAR int * currcomponents; 118 EXTERN_VAR long * currShiftedComponents; 119 119 120 120 void syDeletePair(SObject * so); -
kernel/GBEngine/syz1.cc
r5abb79f r172d852 31 31 /*--------------static variables------------------------*/ 32 32 /*---points to the real components, shifted of the actual module-*/ 33 int * currcomponents=NULL;34 long * currShiftedComponents=NULL;33 VAR int * currcomponents=NULL; 34 VAR long * currShiftedComponents=NULL; 35 35 36 36 -
kernel/GBEngine/syz2.cc
r5abb79f r172d852 45 45 46 46 #ifdef SHOW_CRIT 47 staticint crit;48 staticint crit1;49 staticint spfl;50 staticint cons_pairs;51 staticint crit_fails;47 STATIC_VAR int crit; 48 STATIC_VAR int crit1; 49 STATIC_VAR int spfl; 50 STATIC_VAR int cons_pairs; 51 STATIC_VAR int crit_fails; 52 52 #endif 53 53 typedef struct sopen_pairs open_pairs; -
kernel/GBEngine/syz3.cc
r5abb79f r172d852 46 46 #define WITH_SORT 47 47 //#define FULL_TOTAKE 48 int discard_pairs;49 int short_pairs;48 VAR int discard_pairs; 49 VAR int short_pairs; 50 50 51 51 /*3 -
kernel/GBEngine/syz4.cc
r5abb79f r172d852 228 228 typedef std::map<poly, poly, cache_compare> cache_term; 229 229 230 staticcache_term *Cache;230 STATIC_VAR cache_term *Cache; 231 231 232 232 static void initialize_cache(const int size) -
kernel/GBEngine/tgb.cc
r5abb79f r172d852 39 39 #define ADD_LATER_SIZE 500 40 40 #if 1 41 staticomBin lm_bin = NULL;41 STATIC_VAR omBin lm_bin = NULL; 42 42 static int add_to_reductors(slimgb_alg* c, poly h, int len, int ecart, BOOLEAN simplified=FALSE); 43 43 static void multi_reduction(red_object* los, int & losl, slimgb_alg* c); … … 2090 2090 slimgb_alg * c) 2091 2091 { 2092 staticint export_n = 0;2092 STATIC_VAR int export_n = 0; 2093 2093 assume (terms[tn - 1] != NULL); 2094 2094 assume (rField_is_Zp (c->r)); … … 4896 4896 void multi_reduce_step (find_erg & erg, red_object * r, slimgb_alg * c) 4897 4897 { 4898 staticint id = 0;4898 STATIC_VAR int id = 0; 4899 4899 id++; 4900 4900 unsigned long sev; -
kernel/combinatorics/hdegree.cc
r5abb79f r172d852 19 19 #include "kernel/combinatorics/stairc.h" 20 20 21 int hCo, hMu, hMu2;22 omBin indlist_bin = omGetSpecBin(sizeof(indlist));21 VAR int hCo, hMu, hMu2; 22 VAR omBin indlist_bin = omGetSpecBin(sizeof(indlist)); 23 23 24 24 /*0 implementation*/ … … 128 128 129 129 // independent set 130 staticscmon hInd;130 STATIC_VAR scmon hInd; 131 131 132 132 static void hIndSolve(scmon pure, int Npure, scfmon rad, int Nrad, … … 276 276 } 277 277 278 indset ISet, JSet;278 VAR indset ISet, JSet; 279 279 280 280 static BOOLEAN hNotZero(scfmon rad, int Nrad, varset var, int Nvar) … … 928 928 // HC 929 929 930 staticpoly pWork;930 STATIC_VAR poly pWork; 931 931 932 932 static void hHedge(poly hEdge) … … 1074 1074 // kbase 1075 1075 1076 staticpoly last;1077 staticscmon act;1076 STATIC_VAR poly last; 1077 STATIC_VAR scmon act; 1078 1078 1079 1079 static void scElKbase() -
kernel/combinatorics/hilb.cc
r5abb79f r172d852 42 42 #endif 43 43 44 staticint **Qpol;45 staticint *Q0, *Ql;46 staticint hLength;44 STATIC_VAR int **Qpol; 45 STATIC_VAR int *Q0, *Ql; 46 STATIC_VAR int hLength; 47 47 48 48 -
kernel/combinatorics/hutil.cc
r5abb79f r172d852 14 14 #include "kernel/combinatorics/hutil.h" 15 15 16 scfmon hexist, hstc, hrad, hwork;17 scmon hpure, hpur0;18 varset hvar, hsel;19 int hNexist, hNstc, hNrad, hNvar, hNpure;20 int hisModule;21 monf stcmem, radmem;16 VAR scfmon hexist, hstc, hrad, hwork; 17 VAR scmon hpure, hpur0; 18 VAR varset hvar, hsel; 19 VAR int hNexist, hNstc, hNrad, hNvar, hNpure; 20 VAR int hisModule; 21 VAR monf stcmem, radmem; 22 22 23 23 // Making a global "security" copy of the allocated exponent vectors … … 27 27 // "security" copy as well. But then, all the relevant data is held in 28 28 // global variables, so we might do that here, as well. 29 staticscfmon hsecure= NULL;29 STATIC_VAR scfmon hsecure= NULL; 30 30 31 31 scfmon hInit(ideal S, ideal Q, int *Nexist, ring tailRing) -
kernel/combinatorics/hutil.h
r5abb79f r172d852 35 35 #define LEN_MON (sizeof(scfmon) + sizeof(int)) 36 36 37 externomBin indlist_bin;37 EXTERN_VAR omBin indlist_bin; 38 38 39 externscfmon hexist, hstc, hrad, hwork;40 externscmon hpure, hpur0;41 externvarset hvar, hsel;42 externint hNexist, hNstc, hNrad, hNvar, hNpure;43 externmonf stcmem, radmem;44 externint hisModule;45 externmonf stcmem, radmem;46 externindset ISet, JSet;47 externint hCo, hMu, hMu2;39 EXTERN_VAR scfmon hexist, hstc, hrad, hwork; 40 EXTERN_VAR scmon hpure, hpur0; 41 EXTERN_VAR varset hvar, hsel; 42 EXTERN_VAR int hNexist, hNstc, hNrad, hNvar, hNpure; 43 EXTERN_VAR monf stcmem, radmem; 44 EXTERN_VAR int hisModule; 45 EXTERN_VAR monf stcmem, radmem; 46 EXTERN_VAR indset ISet, JSet; 47 EXTERN_VAR int hCo, hMu, hMu2; 48 48 49 49 -
kernel/digitech.cc
r5abb79f r172d852 11 11 #include "polys/kbuckets.h" 12 12 #include "kernel/ideals.h" 13 staticideal zero_ideal;13 STATIC_INST_VAR ideal zero_ideal; 14 14 15 15 void bit_reduce(poly & f,ring r) -
kernel/fast_mult.cc
r5abb79f r172d852 11 11 typedef poly fastmultrec(poly f, poly g, ring r); 12 12 static const int pass_option=1; 13 staticint mults=0;13 STATIC_VAR int mults=0; 14 14 int Mults() 15 15 { … … 427 427 return erg; 428 428 } 429 staticomBin lm_bin=NULL;429 STATIC_VAR omBin lm_bin=NULL; 430 430 /*3 431 431 * compute for monomials p*q -
kernel/groebner_walk/walkMain.cc
r5abb79f r172d852 35 35 36 36 37 int overflow_error; //global variable37 VAR int overflow_error; //global variable 38 38 39 39 /* -
kernel/groebner_walk/walkSupport.cc
r5abb79f r172d852 13 13 #include "kernel/GBEngine/kstd1.h" 14 14 15 externBOOLEAN overflow_error;15 EXTERN_VAR BOOLEAN overflow_error; 16 16 17 17 /////////////////////////////////////////////////////////////////// -
kernel/ideals.cc
r5abb79f r172d852 2866 2866 } 2867 2867 2868 staticint * id_satstdSaturatingVariables=NULL;2868 STATIC_VAR int * id_satstdSaturatingVariables=NULL; 2869 2869 2870 2870 static BOOLEAN id_sat_vars_sp(kStrategy strat) -
kernel/linear_algebra/Minor.h
r5abb79f r172d852 539 539 * This member can be set using MinorValue::SetRankingStrategy (const int). 540 540 */ 541 staticint g_rankingStrategy;541 STATIC_VAR int g_rankingStrategy; 542 542 543 543 /** -
kernel/linear_algebra/MinorProcessor.cc
r5abb79f r172d852 17 17 18 18 #ifdef COUNT_AND_PRINT_OPERATIONS 19 long addsPoly = 0; /* for the number of additions of two polynomials */20 long multsPoly = 0; /* for the number of multiplications of two polynomials */21 long addsPolyForDiv = 0; /* for the number of additions of two polynomials for19 VAR long addsPoly = 0; /* for the number of additions of two polynomials */ 20 VAR long multsPoly = 0; /* for the number of multiplications of two polynomials */ 21 VAR long addsPolyForDiv = 0; /* for the number of additions of two polynomials for 22 22 polynomial division part */ 23 long multsPolyForDiv = 0; /* for the number of multiplications of two polynomials23 VAR long multsPolyForDiv = 0; /* for the number of multiplications of two polynomials 24 24 for polynomial division part */ 25 long multsMon = 0; /* for the number of multiplications of two monomials */26 long multsMonForDiv = 0; /* for the number of m-m-multiplications for polynomial25 VAR long multsMon = 0; /* for the number of multiplications of two monomials */ 26 VAR long multsMonForDiv = 0; /* for the number of m-m-multiplications for polynomial 27 27 division part */ 28 long savedMultsMFD = 0; /* number of m-m-multiplications that could be saved28 VAR long savedMultsMFD = 0; /* number of m-m-multiplications that could be saved 29 29 when polynomial division would be optimal 30 30 (if p / t1 = t2 + ..., then t1 * t2 = LT(p), i.e., 31 31 this multiplication need not be performed which 32 32 would save one m-m-multiplication) */ 33 long divsMon = 0; /* for the number of divisions of two monomials;33 VAR long divsMon = 0; /* for the number of divisions of two monomials; 34 34 these are all guaranteed to work, i.e., m1/m2 only 35 35 when exponentVector(m1) >= exponentVector(m2) */ -
kernel/linear_algebra/interpolation.cc
r5abb79f r172d852 31 31 #define exponent int 32 32 33 staticmodp_number myp; // all modp computation done mod myp34 staticint myp_index; // index of small prime in Singular table of primes33 STATIC_VAR modp_number myp; // all modp computation done mod myp 34 STATIC_VAR int myp_index; // index of small prime in Singular table of primes 35 35 36 36 static inline modp_number modp_mul (modp_number x,modp_number y) … … 81 81 typedef bool *coord_exist_table; 82 82 83 staticint final_base_dim; // dimension of the quotient space, known from the beginning84 staticint last_solve_column; // last non-zero column in "solve" part of matrix, used for speed up85 staticint n_points; // modp_number of ideals (points)86 staticint *multiplicity; // multiplicities of points87 staticint variables; // modp_number of variables88 staticint max_coord; // maximal possible coordinate product used during Evaluation89 staticbool only_modp; // perform only one modp computations90 91 staticmodp_coordinates *modp_points; // coordinates of points for modp problem - used by Evaluate (this is also initial data for only modp)92 staticq_coordinates *q_points; // coordinates of points for rational data (not used for modp)93 staticint_coordinates *int_points; // coordinates of points for integer data - used to check generators (not used for modp)94 staticcoord_exist_table *coord_exist; // checks whether all coordinates has been initialized95 staticmon_list_entry *check_list; // monomials to be checked in next stages96 staticcoordinates *points; // power products of coordinates of points used in modp cycles97 staticcondition_type *condition_list; // conditions stored in an array98 staticmon_list_entry *lt_list; // leading terms found so far99 staticmon_list_entry *base_list; // standard monomials found so far100 staticrow_list_entry *row_list; // rows of the matrix (both parts)101 staticmodp_number *my_row; // one special row to perform operations102 staticmodp_number *my_solve_row; // one special row to find the linear dependence ("solve" part)103 staticmono_type *column_name; // monomials assigned to columns in solve_row104 105 staticint n_results; // modp_number of performed modp computations (not discarded)106 staticmodp_number modp_denom; // denominator of mod p computations107 staticmodp_result_entry *modp_result; // list of results for various mod p calculations (used for modp - first result is the desired one)108 staticmodp_result_entry *cur_result; // pointer to current result (as before)109 staticmodp_number *congr; // primes used in computations (chinese remainder theorem) (not used for modp)110 staticmodp_number *in_gamma; // inverts used in chinese remainder theorem (not used for modp)111 staticmpz_t bigcongr; // result, in fact, is given in mod bigcongr (not used for modp)112 113 staticmpz_t *polycoef; // polynomial integercoefficients (not used for modp)114 staticmono_type *polyexp; // polynomial exponents83 STATIC_VAR int final_base_dim; // dimension of the quotient space, known from the beginning 84 STATIC_VAR int last_solve_column; // last non-zero column in "solve" part of matrix, used for speed up 85 STATIC_VAR int n_points; // modp_number of ideals (points) 86 STATIC_VAR int *multiplicity; // multiplicities of points 87 STATIC_VAR int variables; // modp_number of variables 88 STATIC_VAR int max_coord; // maximal possible coordinate product used during Evaluation 89 STATIC_VAR bool only_modp; // perform only one modp computations 90 91 STATIC_VAR modp_coordinates *modp_points; // coordinates of points for modp problem - used by Evaluate (this is also initial data for only modp) 92 STATIC_VAR q_coordinates *q_points; // coordinates of points for rational data (not used for modp) 93 STATIC_VAR int_coordinates *int_points; // coordinates of points for integer data - used to check generators (not used for modp) 94 STATIC_VAR coord_exist_table *coord_exist; // checks whether all coordinates has been initialized 95 STATIC_VAR mon_list_entry *check_list; // monomials to be checked in next stages 96 STATIC_VAR coordinates *points; // power products of coordinates of points used in modp cycles 97 STATIC_VAR condition_type *condition_list; // conditions stored in an array 98 STATIC_VAR mon_list_entry *lt_list; // leading terms found so far 99 STATIC_VAR mon_list_entry *base_list; // standard monomials found so far 100 STATIC_VAR row_list_entry *row_list; // rows of the matrix (both parts) 101 STATIC_VAR modp_number *my_row; // one special row to perform operations 102 STATIC_VAR modp_number *my_solve_row; // one special row to find the linear dependence ("solve" part) 103 STATIC_VAR mono_type *column_name; // monomials assigned to columns in solve_row 104 105 STATIC_VAR int n_results; // modp_number of performed modp computations (not discarded) 106 STATIC_VAR modp_number modp_denom; // denominator of mod p computations 107 STATIC_VAR modp_result_entry *modp_result; // list of results for various mod p calculations (used for modp - first result is the desired one) 108 STATIC_VAR modp_result_entry *cur_result; // pointer to current result (as before) 109 STATIC_VAR modp_number *congr; // primes used in computations (chinese remainder theorem) (not used for modp) 110 STATIC_VAR modp_number *in_gamma; // inverts used in chinese remainder theorem (not used for modp) 111 STATIC_VAR mpz_t bigcongr; // result, in fact, is given in mod bigcongr (not used for modp) 112 113 STATIC_VAR mpz_t *polycoef; // polynomial integercoefficients (not used for modp) 114 STATIC_VAR mono_type *polyexp; // polynomial exponents 115 115 116 116 struct gen_list_struct {mpz_t *polycoef; … … 119 119 typedef struct gen_list_struct gen_list_entry; 120 120 121 staticgen_list_entry *gen_list=NULL; // list of resulting generators - output data (integer version)122 123 staticint generic_n_generators; // modp_number of generators - should be the same for all modp comp (not used for modp)124 staticmono_type *generic_column_name; // monomials assigned to columns in solve_row - should be the same for all modp comp (!!! used for modp)125 staticmon_list_entry *generic_lt=NULL; // leading terms for ordered generators - should be the same for all modp comp (not used for modp)126 staticint good_primes; // modp_number of good primes so far;127 staticint bad_primes; // modp_number of bad primes so far;128 staticmpz_t common_denom; // common denominator used to force points coordinates to Z (not used for modp)129 staticbool denom_divisible; // common denominator is divisible by p (not used for modp)130 131 staticpoly comparizon_p1; //polynomials used to do comparizons by Singular132 staticpoly comparizon_p2;133 134 staticmodp_number *modp_Reverse; // reverses in mod p135 136 staticbool protocol; // true to show the protocol121 STATIC_VAR gen_list_entry *gen_list=NULL; // list of resulting generators - output data (integer version) 122 123 STATIC_VAR int generic_n_generators; // modp_number of generators - should be the same for all modp comp (not used for modp) 124 STATIC_VAR mono_type *generic_column_name; // monomials assigned to columns in solve_row - should be the same for all modp comp (!!! used for modp) 125 STATIC_VAR mon_list_entry *generic_lt=NULL; // leading terms for ordered generators - should be the same for all modp comp (not used for modp) 126 STATIC_VAR int good_primes; // modp_number of good primes so far; 127 STATIC_VAR int bad_primes; // modp_number of bad primes so far; 128 STATIC_VAR mpz_t common_denom; // common denominator used to force points coordinates to Z (not used for modp) 129 STATIC_VAR bool denom_divisible; // common denominator is divisible by p (not used for modp) 130 131 STATIC_VAR poly comparizon_p1; //polynomials used to do comparizons by Singular 132 STATIC_VAR poly comparizon_p2; 133 134 STATIC_VAR modp_number *modp_Reverse; // reverses in mod p 135 136 STATIC_VAR bool protocol; // true to show the protocol 137 137 138 138 #ifdef checksize 139 staticint maximal_size=0;139 STATIC_VAR int maximal_size=0; 140 140 #endif 141 141 -
kernel/linear_algebra/linearAlgebra.cc
r756676e r172d852 969 969 /** 970 970 * Performs one transformation step on the given matrix H as part of 971 * the gouverning QR double shift algorith .971 * the gouverning QR double shift algorithm. 972 972 * The method will change the given matrix H side-effect-wise. The resulting 973 973 * matrix H' will be in Hessenberg form. -
kernel/maps/fast_maps.cc
r5abb79f r172d852 132 132 *F mapolyCreate . . . . . . . . . . . . . . . Creates mapoly 133 133 */ 134 staticomBin mapolyBin = omGetSpecBin(sizeof(mapoly_s));135 staticomBin macoeffBin = omGetSpecBin(sizeof(macoeff_s));134 STATIC_VAR omBin mapolyBin = omGetSpecBin(sizeof(mapoly_s)); 135 STATIC_VAR omBin macoeffBin = omGetSpecBin(sizeof(macoeff_s)); 136 136 137 137 mapoly maMonomial_Create(poly p, ring /*r_p*/, sBucket_pt bucket) -
kernel/numeric/mpr_base.h
r5abb79f r172d852 113 113 ideal loNewtonPolytope( const ideal id ); 114 114 115 externsize_t gmp_output_digits;115 EXTERN_VAR size_t gmp_output_digits; 116 116 //%e 117 117 #endif /*MPR_BASE_H*/ -
kernel/oswrapper/feread.cc
r5abb79f r172d852 54 54 char *command_generator (char *text, int state) 55 55 { 56 staticint list_index, len;57 staticidhdl h;56 STATIC_VAR int list_index, len; 57 STATIC_VAR idhdl h; 58 58 const char *name; 59 59 … … 126 126 #ifndef READLINE_READLINE_H_OK 127 127 /* declare everything we need explicitely and do not rely on includes */ 128 externchar * rl_readline_name;129 externchar *rl_line_buffer;128 EXTERN_VAR char * rl_readline_name; 129 EXTERN_VAR char *rl_line_buffer; 130 130 char *rl_filename_completion_function(const char*, int); 131 131 typedef char **CPPFunction (); 132 132 133 133 extern char ** rl_completion_matches (const char*, RL_PROC); 134 externCPPFunction * rl_attempted_completion_function;135 externFILE * rl_outstream;134 EXTERN_VAR CPPFunction * rl_attempted_completion_function; 135 EXTERN_VAR FILE * rl_outstream; 136 136 extern char * readline (const char *); 137 137 extern void add_history (char *); … … 164 164 char *(*fe_filename_completion_function)(); /* 3 */ 165 165 char *(* fe_readline) (char *); /* 4 */ 166 void (*fe_add_history) (char *); /* 5 */167 char ** fe_rl_readline_name; /* 6 */168 char **fe_rl_line_buffer; /* 7 */166 VAR void (*fe_add_history) (char *); /* 5 */ 167 VAR char ** fe_rl_readline_name; /* 6 */ 168 VAR char **fe_rl_line_buffer; /* 7 */ 169 169 char **(*fe_completion_matches)(...); /* 8 */ 170 CPPFunction **fe_rl_attempted_completion_function; /* 9 */171 FILE ** fe_rl_outstream; /* 10 */172 int (*fe_write_history) (); /* 11 */173 int (*fe_history_total_bytes) (); /* 12 */174 void (*fe_using_history) (); /* 13 */175 int (*fe_read_history) (char *); /* 14 */170 VAR CPPFunction **fe_rl_attempted_completion_function; /* 9 */ 171 VAR FILE ** fe_rl_outstream; /* 10 */ 172 VAR int (*fe_write_history) (); /* 11 */ 173 VAR int (*fe_history_total_bytes) (); /* 12 */ 174 VAR void (*fe_using_history) (); /* 13 */ 175 VAR int (*fe_read_history) (char *); /* 14 */ 176 176 177 177 } -
kernel/oswrapper/feread.h
r5abb79f r172d852 10 10 #include "kernel/structs.h" 11 11 12 externchar prompt_char; /*1 either '>' or '.'*/12 EXTERN_VAR char prompt_char; /*1 either '>' or '.'*/ 13 13 14 14 #ifdef __cplusplus -
kernel/oswrapper/fereadl.c
r5abb79f r172d852 57 57 #define feCTRL(C) ((C) & 0x1F) /* <ctrl> character */ 58 58 59 struct termios fe_saved_attributes;60 61 staticBOOLEAN fe_stdout_is_tty;62 staticBOOLEAN fe_stdin_is_tty;63 BOOLEAN fe_use_fgets=FALSE;64 staticBOOLEAN fe_is_initialized=FALSE;65 66 FILE * fe_echo; /*the output file for echoed characters*/59 VAR struct termios fe_saved_attributes; 60 61 STATIC_VAR BOOLEAN fe_stdout_is_tty; 62 STATIC_VAR BOOLEAN fe_stdin_is_tty; 63 VAR BOOLEAN fe_use_fgets=FALSE; 64 STATIC_VAR BOOLEAN fe_is_initialized=FALSE; 65 66 VAR FILE * fe_echo; /*the output file for echoed characters*/ 67 67 68 68 #define fe_hist_max 32 69 char ** fe_hist=NULL;70 short fe_hist_pos;71 BOOLEAN fe_is_raw_tty=0;72 short fe_cursor_pos; /* 0..colmax-1*/73 short fe_cursor_line; /* 0..pagelength-1*/69 VAR char ** fe_hist=NULL; 70 VAR short fe_hist_pos; 71 VAR BOOLEAN fe_is_raw_tty=0; 72 VAR short fe_cursor_pos; /* 0..colmax-1*/ 73 VAR short fe_cursor_line; /* 0..pagelength-1*/ 74 74 75 75 #ifndef HAVE_ATEXIT … … 131 131 } 132 132 133 staticchar termcap_buff[2048];133 STATIC_VAR char termcap_buff[2048]; 134 134 static int fe_out_char(int c) 135 135 { … … 197 197 { 198 198 #ifndef __CYGWIN__ 199 externchar *BC;200 externchar *UP;201 externchar PC;199 EXTERN_VAR char *BC; 200 EXTERN_VAR char *UP; 201 EXTERN_VAR char PC; 202 202 #endif 203 203 /* OB: why this ? HS: char t_buf[128] does not work with glibc2 systems */ … … 713 713 char *(*fe_filename_completion_function)(); /* 3 */ 714 714 char *(* fe_readline) (); /* 4 */ 715 void (*fe_add_history) (); /* 5 */716 char ** fe_rl_readline_name; /* 6 */717 char **fe_rl_line_buffer; /* 7 */715 VAR void (*fe_add_history) (); /* 5 */ 716 VAR char ** fe_rl_readline_name; /* 6 */ 717 VAR char **fe_rl_line_buffer; /* 7 */ 718 718 char **(*fe_completion_matches)(); /* 8 */ 719 CPPFunction **fe_rl_attempted_completion_function; /* 9 */720 FILE ** fe_rl_outstream; /* 10 */721 int (*fe_write_history) (); /* 11 */722 int (*fe_history_total_bytes) (); /* 12 */723 void (*fe_using_history) (); /* 13 */724 int (*fe_read_history) (); /* 14 */725 726 void * fe_rl_hdl=NULL;719 VAR CPPFunction **fe_rl_attempted_completion_function; /* 9 */ 720 VAR FILE ** fe_rl_outstream; /* 10 */ 721 VAR int (*fe_write_history) (); /* 11 */ 722 VAR int (*fe_history_total_bytes) (); /* 12 */ 723 VAR void (*fe_using_history) (); /* 13 */ 724 VAR int (*fe_read_history) (); /* 14 */ 725 726 VAR void * fe_rl_hdl=NULL; 727 727 728 728 char *command_generator (char *text, int state); -
kernel/oswrapper/timer.cc
r5abb79f r172d852 15 15 #include <unistd.h> 16 16 17 int timerv = 0;18 staticdouble timer_resolution = TIMER_RESOLUTION;19 20 staticdouble mintime = 0.5;17 VAR int timerv = 0; 18 STATIC_VAR double timer_resolution = TIMER_RESOLUTION; 19 20 STATIC_VAR double mintime = 0.5; 21 21 22 22 void SetTimerResolution(int res) … … 56 56 * the start time of the timer 57 57 */ 58 staticint64 siStartTime;59 staticint64 startl;58 STATIC_VAR int64 siStartTime; 59 STATIC_VAR int64 startl; 60 60 61 61 /*3 62 62 * temp structure to get the time 63 63 */ 64 staticstruct rusage t_rec;64 STATIC_VAR struct rusage t_rec; 65 65 /*0 implementation*/ 66 66 … … 114 114 */ 115 115 #ifdef EXTEND_TIMER_D 116 externint iiOp;116 EXTERN_VAR int iiOp; 117 117 #endif 118 118 … … 144 144 145 145 /*0 Real timer implementation*/ 146 int rtimerv = 0;147 staticstruct timeval startRl;148 staticstruct timeval siStartRTime;149 staticstruct timezone tzp;146 VAR int rtimerv = 0; 147 STATIC_VAR struct timeval startRl; 148 STATIC_VAR struct timeval siStartRTime; 149 STATIC_VAR struct timezone tzp; 150 150 151 151 void startRTimer() -
kernel/oswrapper/timer.h
r5abb79f r172d852 8 8 */ 9 9 10 externint timerv;10 EXTERN_VAR int timerv; 11 11 void startTimer(void); 12 12 void writeTime(const char* s); … … 15 15 int getTimer(); 16 16 17 externint rtimerv;17 EXTERN_VAR int rtimerv; 18 18 void startRTimer(void); 19 19 void writeRTime(const char* s); -
kernel/polys.cc
r5abb79f r172d852 10 10 /// Widely used global variable which specifies the current polynomial ring for Singular interpreter and legacy implementatins. 11 11 /// @Note: one should avoid using it in newer designs, for example due to possible problems in parallelization with threads. 12 ring currRing = NULL;12 VAR ring currRing = NULL; 13 13 14 14 void rChangeCurrRing(ring r) -
kernel/polys.h
r5abb79f r172d852 16 16 #include "polys/monomials/p_polys.h" 17 17 18 externring currRing;18 EXTERN_VAR ring currRing; 19 19 void rChangeCurrRing(ring r); 20 20 -
kernel/structs.h
r5abb79f r172d852 80 80 #define loop for(;;) 81 81 82 externomBin char_ptr_bin;82 EXTERN_VAR omBin char_ptr_bin; 83 83 84 84 #endif
Note: See TracChangeset
for help on using the changeset viewer.