Commit 67746a44 authored by malenov's avatar malenov
Browse files

cleanup

parent 2472f1f8
Loading
Loading
Loading
Loading
Loading
+8 −24
Original line number Diff line number Diff line
@@ -60,6 +60,8 @@
#ifndef _COUNT_H
#define _COUNT_H "$Id$"

#include <assert.h>

/* #define WMOPS 1 */ /* <<<- enable or disable WMOPS profiling features here */

#define MAXCOUNTERS              ( 512 )
@@ -585,29 +587,11 @@ void BASOP_get_total_wmops( double *min, double *max, double *avg );
#define SUB_WMOPS_INIT( label ) BASOP_sub_start( label )
#define END_SUB_WMOPS           BASOP_sub_end()


#if !defined WMOPS_FL //&& defined WMOPS
#include <assert.h>
#define reset_wmops() BASOP_init
// extern int cntr_push_pop;
#define push_wmops( x )        \
    {                          \
        BASOP_push_wmops( x ); \
    }
#define pop_wmops()        \
    {                      \
        BASOP_pop_wmops(); \
    }
#define update_wmops()        \
    {                         \
        BASOP_frame_update(); \
    }
#define print_wmops()              \
    {                              \
        WMOPS_output_all_std( 0 ); \
    }
#define update_mem() ;
#endif
#define reset_wmops()   { BASOP_init }
#define push_wmops( x ) { BASOP_push_wmops( x ); }
#define pop_wmops()     { BASOP_pop_wmops(); }
#define update_wmops()  { BASOP_frame_update(); }
#define print_wmops()   { WMOPS_output_all_std( 0 ); }


#endif /* _COUNT_H */