Go to the documentation of this file.00001 
00002 
00003 
00004 
00005 
00006 #ifndef __RGC_UTILS
00007 #define __RGC_UTILS
00008 
00009 
00010 
00011 
00012 #if (__DBG_LV == 1)
00013 #define DPRINT1 debug_printf
00014 #define DPRINT2 debug_printf
00015 #elif (__DBG_LV == 2)
00016 #define DPRINT1 
00017 #define DPRINT2 debug_printf
00018 #else
00019 #define DPRINT1 
00020 #define DPRINT2
00021 #endif
00022 
00023 
00024 #include <assert.h>
00025 
00026 
00027 
00028 #define ASSERT(condition) \
00029 { \
00030   if (!(condition)) { hoge(); } \
00031 } 
00032 
00033 
00034 
00035 
00036 void init_utils();
00037 unsigned current_utime();
00038 
00039 #ifdef __PAPI
00040 void papi_init();
00041 void papi_print_counters();
00042 #endif
00043 
00044 
00045 #endif