15 #define ALL_STATISTIC(FUN)
16 #define STATISTIC(f) do{}while(0)
21 #define ALL_STATISTIC(FUN) \
25 FUN(n_NormalizeHelper); \
55 FUN(n_CoeffRingQuot1); \
65 FUN(n_ChineseRemainderSym); \
70 FUN(n_NumberOfParameters); \
71 FUN(n_ParameterNames); \
73 FUN(n_GetNumerator); \
74 FUN(n_ClearContent); \
75 FUN(n_ClearDenominators); \
86 FUN(n_convFactoryNSingN); \
87 FUN(n_convSingNFactoryN); \
93 struct SNumberStatistic
96 SNumberStatistic(){
Init(); }
98 inline void Init(
const unsigned long defaultvalue = 0)
100 #define _Z(F) this->F = defaultvalue
106 inline void Print()
const
108 #define _P(F) if(this->F > 0) ::Print("%21s: %13lu\n", # F, this->F)
114 #define _UL(F) unsigned long F
120 #define STATISTIC(F) {extern struct SNumberStatistic number_stats; number_stats.F += 1;}
126 #ifndef HAVE_NUMSTATS
127 WarnS(
"Please enable NUMSTATS first!");
128 (void)(defaultvalue);
130 extern struct SNumberStatistic number_stats;
131 number_stats.Init(defaultvalue);
138 ::Print(
"%s:\n", (msg ==
NULL) ?
"Statistic about number operations" : msg);
139 #ifndef HAVE_NUMSTATS
140 WarnS(
"Please enable NUMSTATS first!");
142 extern struct SNumberStatistic number_stats;
143 number_stats.Print();