Changeset ba19a8 in git
- Timestamp:
- Nov 28, 2014, 1:56:35 PM (9 years ago)
- Branches:
- (u'spielwiese', 'e7cc1ebecb61be8b9ca6c18016352af89940b21a')
- Children:
- e1419f3535e85a849df97ea435b49ca0b2caf946
- Parents:
- b24fe3d2a86019da1031374ed6dc2e954634c05e
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/LIB/schreyer.lib
rb24fe3 rba19a8 2259 2259 exportto(Schreyer, Syzextra::ComputeResolution); 2260 2260 2261 exportto(Top, Syzextra::NumberStatsInit); 2262 exportto(Top, Syzextra::NumberStatsPrint); 2263 2261 if (defined(NumberStatsInit)) 2262 { 2263 exportto(Top, Syzextra::NumberStatsInit); 2264 exportto(Top, Syzextra::NumberStatsPrint); 2265 } 2264 2266 newstruct("SRES","ring r,resolution rsltn"); // http://www.singular.uni-kl.de/Manual/latest/sing_179.htm#SEC218 2265 2267 newstruct("SSYZ","ring r,module szg"); // http://www.singular.uni-kl.de/Manual/latest/sing_179.htm#SEC218 -
Singular/dyn_modules/syzextra/mod_main.cc
rb24fe3 rba19a8 1931 1931 // no args. 1932 1932 // init num stats 1933 #ifdef HAVE_NUMSTATS 1933 1934 static BOOLEAN _NumberStatsInit(leftv res, leftv h) 1934 1935 { … … 1949 1950 return FALSE; 1950 1951 } 1952 #endif 1951 1953 1952 1954 // maybe one arg. 1953 1955 // print num stats 1956 #ifdef HAVE_NUMSTATS 1954 1957 static BOOLEAN _NumberStatsPrint(leftv res, leftv h) 1955 1958 { … … 1970 1973 return FALSE; 1971 1974 } 1975 #endif 1972 1976 1973 1977 END_NAMESPACE … … 2029 2033 // ADD("GetAMData", FALSE, GetAMData); 2030 2034 2035 #ifdef HAVE_NUMSTATS 2031 2036 ADD("NumberStatsInit", FALSE, _NumberStatsInit); 2032 2037 ADD("NumberStatsPrint", FALSE, _NumberStatsPrint); 2038 #endif 2033 2039 2034 2040 // ADD("", FALSE, ); -
libpolys/coeffs/numstats.h
rb24fe3 rba19a8 124 124 #endif 125 125 126 #ifdef HAVE_NUMSTATS 126 127 /// set all counters to zero 127 128 static inline void number_stats_Init(const unsigned long defaultvalue = 0) 128 129 { 129 #ifndef HAVE_NUMSTATS130 WarnS("Please note that number statistic was disabled in compile-time");131 (void)(defaultvalue);132 #else133 130 extern struct SNumberStatistic number_stats; 134 131 number_stats.Init(defaultvalue); 132 } 135 133 #endif 136 }137 134 135 #ifdef HAVE_NUMSTATS 138 136 /// print out all counters 139 137 static inline void number_stats_Print(const char * const msg = NULL) 140 138 { 141 #ifndef HAVE_NUMSTATS142 Warn("Please note that number statistic was disabled in compile-time [message: %s]", msg);143 #else144 139 extern struct SNumberStatistic number_stats; 145 140 number_stats.Print(msg); 141 } 146 142 #endif 147 }148 143 #endif /* NUMSTAT */ 149 144
Note: See TracChangeset
for help on using the changeset viewer.