My Project  UNKNOWN_GIT_VERSION
Macros | Functions
numstats.h File Reference

Count number operarions over coefficient rings, fields and other domains suitable for Singular polynomials. More...

#include "misc/auxiliary.h"
#include "reporter/reporter.h"

Go to the source code of this file.

Macros

#define ALL_STATISTIC(FUN)
 
#define STATISTIC(f)   do{}while(0)
 

Functions

static void number_stats_Init (const unsigned long defaultvalue=0)
 set all counters to zero More...
 
static void number_stats_Print (const char *const msg=NULL)
 print out all counters More...
 

Detailed Description

Count number operarions over coefficient rings, fields and other domains suitable for Singular polynomials.

Optional addition for the main interface for Singular coefficients, i.e. to n_[A-Z].* (..., const coeffs) functions

Definition in file numstats.h.

Macro Definition Documentation

◆ ALL_STATISTIC

#define ALL_STATISTIC (   FUN)

Definition at line 15 of file numstats.h.

◆ STATISTIC

#define STATISTIC (   f)    do{}while(0)

Definition at line 16 of file numstats.h.

Function Documentation

◆ number_stats_Init()

static void number_stats_Init ( const unsigned long  defaultvalue = 0)
inlinestatic

set all counters to zero

Definition at line 124 of file numstats.h.

125 {
126 #ifndef HAVE_NUMSTATS
127  WarnS("Please enable NUMSTATS first!");
128  (void)(defaultvalue);
129 #else
130  extern struct SNumberStatistic number_stats;
131  number_stats.Init(defaultvalue);
132 #endif
133 }
#define WarnS
Definition: emacs.cc:78

◆ number_stats_Print()

static void number_stats_Print ( const char *const  msg = NULL)
inlinestatic

print out all counters

Definition at line 136 of file numstats.h.

137 {
138  ::Print("%s:\n", (msg == NULL) ? "Statistic about number operations" : msg);
139 #ifndef HAVE_NUMSTATS
140  WarnS("Please enable NUMSTATS first!");
141 #else
142  extern struct SNumberStatistic number_stats;
143  number_stats.Print();
144 #endif
145  ::PrintLn();
146 }
void PrintLn()
Definition: reporter.cc:310
#define Print
Definition: emacs.cc:80
#define WarnS
Definition: emacs.cc:78
#define NULL
Definition: omList.c:10