diff options
Diffstat (limited to 'drivers/staging/epl/Benchmark.h')
-rw-r--r-- | drivers/staging/epl/Benchmark.h | 326 |
1 files changed, 160 insertions, 166 deletions
diff --git a/drivers/staging/epl/Benchmark.h b/drivers/staging/epl/Benchmark.h index 681c1d9..62dee3b 100644 --- a/drivers/staging/epl/Benchmark.h +++ b/drivers/staging/epl/Benchmark.h @@ -73,31 +73,30 @@ #include "global.h" - #if (TARGET_SYSTEM == _NO_OS_) && (DEV_SYSTEM == _DEV_GNU_CF548X_) - #include "common.h" +#include "common.h" #elif (TARGET_SYSTEM == _LINUX_) && defined(__KERNEL__) // #include <linux/config.h> - #include <linux/kernel.h> +#include <linux/kernel.h> - #ifdef CONFIG_COLDFIRE - #include <asm/coldfire.h> - #include <asm/m5485gpio.h> +#ifdef CONFIG_COLDFIRE +#include <asm/coldfire.h> +#include <asm/m5485gpio.h> - #define BENCHMARK_SET(x) MCF_GPIO_PODR_PCIBG |= (1 << (x)) // (x+1) - #define BENCHMARK_RESET(x) MCF_GPIO_PODR_PCIBG &= ~(1 << (x)) // (x+1) - #define BENCHMARK_TOGGLE(x) MCF_GPIO_PODR_PCIBR ^= (1 << (x - 5)) - #else - #undef BENCHMARK_MODULES - #define BENCHMARK_MODULES 0x00000000 - #endif +#define BENCHMARK_SET(x) MCF_GPIO_PODR_PCIBG |= (1 << (x)) // (x+1) +#define BENCHMARK_RESET(x) MCF_GPIO_PODR_PCIBG &= ~(1 << (x)) // (x+1) +#define BENCHMARK_TOGGLE(x) MCF_GPIO_PODR_PCIBR ^= (1 << (x - 5)) +#else +#undef BENCHMARK_MODULES +#define BENCHMARK_MODULES 0x00000000 +#endif #else // disable Benchmarking - #undef BENCHMARK_MODULES - #define BENCHMARK_MODULES 0x00000000 +#undef BENCHMARK_MODULES +#define BENCHMARK_MODULES 0x00000000 #endif /***************************************************************************/ @@ -149,295 +148,290 @@ #define BENCHMARK_MOD_31 0x40000000 #define BENCHMARK_MOD_32 0x80000000 - #if (BENCHMARK_MODULES & BENCHMARK_MOD_01) - #define BENCHMARK_MOD_01_SET(x) BENCHMARK_SET(x) - #define BENCHMARK_MOD_01_RESET(x) BENCHMARK_RESET(x) - #define BENCHMARK_MOD_01_TOGGLE(x) BENCHMARK_TOGGLE(x) +#define BENCHMARK_MOD_01_SET(x) BENCHMARK_SET(x) +#define BENCHMARK_MOD_01_RESET(x) BENCHMARK_RESET(x) +#define BENCHMARK_MOD_01_TOGGLE(x) BENCHMARK_TOGGLE(x) #else - #define BENCHMARK_MOD_01_SET(x) - #define BENCHMARK_MOD_01_RESET(x) - #define BENCHMARK_MOD_01_TOGGLE(x) +#define BENCHMARK_MOD_01_SET(x) +#define BENCHMARK_MOD_01_RESET(x) +#define BENCHMARK_MOD_01_TOGGLE(x) #endif #if (BENCHMARK_MODULES & BENCHMARK_MOD_02) - #define BENCHMARK_MOD_02_SET(x) BENCHMARK_SET(x) - #define BENCHMARK_MOD_02_RESET(x) BENCHMARK_RESET(x) - #define BENCHMARK_MOD_02_TOGGLE(x) BENCHMARK_TOGGLE(x) +#define BENCHMARK_MOD_02_SET(x) BENCHMARK_SET(x) +#define BENCHMARK_MOD_02_RESET(x) BENCHMARK_RESET(x) +#define BENCHMARK_MOD_02_TOGGLE(x) BENCHMARK_TOGGLE(x) #else - #define BENCHMARK_MOD_02_SET(x) - #define BENCHMARK_MOD_02_RESET(x) - #define BENCHMARK_MOD_02_TOGGLE(x) +#define BENCHMARK_MOD_02_SET(x) +#define BENCHMARK_MOD_02_RESET(x) +#define BENCHMARK_MOD_02_TOGGLE(x) #endif #if (BENCHMARK_MODULES & BENCHMARK_MOD_03) - #define BENCHMARK_MOD_03_SET(x) BENCHMARK_SET(x) - #define BENCHMARK_MOD_03_RESET(x) BENCHMARK_RESET(x) - #define BENCHMARK_MOD_03_TOGGLE(x) BENCHMARK_TOGGLE(x) +#define BENCHMARK_MOD_03_SET(x) BENCHMARK_SET(x) +#define BENCHMARK_MOD_03_RESET(x) BENCHMARK_RESET(x) +#define BENCHMARK_MOD_03_TOGGLE(x) BENCHMARK_TOGGLE(x) #else - #define BENCHMARK_MOD_03_SET(x) - #define BENCHMARK_MOD_03_RESET(x) - #define BENCHMARK_MOD_03_TOGGLE(x) +#define BENCHMARK_MOD_03_SET(x) +#define BENCHMARK_MOD_03_RESET(x) +#define BENCHMARK_MOD_03_TOGGLE(x) #endif #if (BENCHMARK_MODULES & BENCHMARK_MOD_04) - #define BENCHMARK_MOD_04_SET(x) BENCHMARK_SET(x) - #define BENCHMARK_MOD_04_RESET(x) BENCHMARK_RESET(x) - #define BENCHMARK_MOD_04_TOGGLE(x) BENCHMARK_TOGGLE(x) +#define BENCHMARK_MOD_04_SET(x) BENCHMARK_SET(x) +#define BENCHMARK_MOD_04_RESET(x) BENCHMARK_RESET(x) +#define BENCHMARK_MOD_04_TOGGLE(x) BENCHMARK_TOGGLE(x) #else - #define BENCHMARK_MOD_04_SET(x) - #define BENCHMARK_MOD_04_RESET(x) - #define BENCHMARK_MOD_04_TOGGLE(x) +#define BENCHMARK_MOD_04_SET(x) +#define BENCHMARK_MOD_04_RESET(x) +#define BENCHMARK_MOD_04_TOGGLE(x) #endif #if (BENCHMARK_MODULES & BENCHMARK_MOD_05) - #define BENCHMARK_MOD_05_SET(x) BENCHMARK_SET(x) - #define BENCHMARK_MOD_05_RESET(x) BENCHMARK_RESET(x) - #define BENCHMARK_MOD_05_TOGGLE(x) BENCHMARK_TOGGLE(x) +#define BENCHMARK_MOD_05_SET(x) BENCHMARK_SET(x) +#define BENCHMARK_MOD_05_RESET(x) BENCHMARK_RESET(x) +#define BENCHMARK_MOD_05_TOGGLE(x) BENCHMARK_TOGGLE(x) #else - #define BENCHMARK_MOD_05_SET(x) - #define BENCHMARK_MOD_05_RESET(x) - #define BENCHMARK_MOD_05_TOGGLE(x) +#define BENCHMARK_MOD_05_SET(x) +#define BENCHMARK_MOD_05_RESET(x) +#define BENCHMARK_MOD_05_TOGGLE(x) #endif #if (BENCHMARK_MODULES & BENCHMARK_MOD_06) - #define BENCHMARK_MOD_06_SET(x) BENCHMARK_SET(x) - #define BENCHMARK_MOD_06_RESET(x) BENCHMARK_RESET(x) - #define BENCHMARK_MOD_06_TOGGLE(x) BENCHMARK_TOGGLE(x) +#define BENCHMARK_MOD_06_SET(x) BENCHMARK_SET(x) +#define BENCHMARK_MOD_06_RESET(x) BENCHMARK_RESET(x) +#define BENCHMARK_MOD_06_TOGGLE(x) BENCHMARK_TOGGLE(x) #else - #define BENCHMARK_MOD_06_SET(x) - #define BENCHMARK_MOD_06_RESET(x) - #define BENCHMARK_MOD_06_TOGGLE(x) +#define BENCHMARK_MOD_06_SET(x) +#define BENCHMARK_MOD_06_RESET(x) +#define BENCHMARK_MOD_06_TOGGLE(x) #endif #if (BENCHMARK_MODULES & BENCHMARK_MOD_07) - #define BENCHMARK_MOD_07_SET(x) BENCHMARK_SET(x) - #define BENCHMARK_MOD_07_RESET(x) BENCHMARK_RESET(x) - #define BENCHMARK_MOD_07_TOGGLE(x) BENCHMARK_TOGGLE(x) +#define BENCHMARK_MOD_07_SET(x) BENCHMARK_SET(x) +#define BENCHMARK_MOD_07_RESET(x) BENCHMARK_RESET(x) +#define BENCHMARK_MOD_07_TOGGLE(x) BENCHMARK_TOGGLE(x) #else - #define BENCHMARK_MOD_07_SET(x) - #define BENCHMARK_MOD_07_RESET(x) - #define BENCHMARK_MOD_07_TOGGLE(x) +#define BENCHMARK_MOD_07_SET(x) +#define BENCHMARK_MOD_07_RESET(x) +#define BENCHMARK_MOD_07_TOGGLE(x) #endif #if (BENCHMARK_MODULES & BENCHMARK_MOD_08) - #define BENCHMARK_MOD_08_SET(x) BENCHMARK_SET(x) - #define BENCHMARK_MOD_08_RESET(x) BENCHMARK_RESET(x) - #define BENCHMARK_MOD_08_TOGGLE(x) BENCHMARK_TOGGLE(x) +#define BENCHMARK_MOD_08_SET(x) BENCHMARK_SET(x) +#define BENCHMARK_MOD_08_RESET(x) BENCHMARK_RESET(x) +#define BENCHMARK_MOD_08_TOGGLE(x) BENCHMARK_TOGGLE(x) #else - #define BENCHMARK_MOD_08_SET(x) - #define BENCHMARK_MOD_08_RESET(x) - #define BENCHMARK_MOD_08_TOGGLE(x) +#define BENCHMARK_MOD_08_SET(x) +#define BENCHMARK_MOD_08_RESET(x) +#define BENCHMARK_MOD_08_TOGGLE(x) #endif #if (BENCHMARK_MODULES & BENCHMARK_MOD_09) - #define BENCHMARK_MOD_09_SET(x) BENCHMARK_SET(x) - #define BENCHMARK_MOD_09_RESET(x) BENCHMARK_RESET(x) - #define BENCHMARK_MOD_09_TOGGLE(x) BENCHMARK_TOGGLE(x) +#define BENCHMARK_MOD_09_SET(x) BENCHMARK_SET(x) +#define BENCHMARK_MOD_09_RESET(x) BENCHMARK_RESET(x) +#define BENCHMARK_MOD_09_TOGGLE(x) BENCHMARK_TOGGLE(x) #else - #define BENCHMARK_MOD_09_SET(x) - #define BENCHMARK_MOD_09_RESET(x) - #define BENCHMARK_MOD_09_TOGGLE(x) +#define BENCHMARK_MOD_09_SET(x) +#define BENCHMARK_MOD_09_RESET(x) +#define BENCHMARK_MOD_09_TOGGLE(x) #endif #if (BENCHMARK_MODULES & BENCHMARK_MOD_10) - #define BENCHMARK_MOD_10_SET(x) BENCHMARK_SET(x) - #define BENCHMARK_MOD_10_RESET(x) BENCHMARK_RESET(x) +#define BENCHMARK_MOD_10_SET(x) BENCHMARK_SET(x) +#define BENCHMARK_MOD_10_RESET(x) BENCHMARK_RESET(x) #else - #define BENCHMARK_MOD_10_SET(x) - #define BENCHMARK_MOD_10_RESET(x) +#define BENCHMARK_MOD_10_SET(x) +#define BENCHMARK_MOD_10_RESET(x) #endif #if (BENCHMARK_MODULES & BENCHMARK_MOD_11) - #define BENCHMARK_MOD_11_SET(x) BENCHMARK_SET(x) - #define BENCHMARK_MOD_11_RESET(x) BENCHMARK_RESET(x) +#define BENCHMARK_MOD_11_SET(x) BENCHMARK_SET(x) +#define BENCHMARK_MOD_11_RESET(x) BENCHMARK_RESET(x) #else - #define BENCHMARK_MOD_11_SET(x) - #define BENCHMARK_MOD_11_RESET(x) +#define BENCHMARK_MOD_11_SET(x) +#define BENCHMARK_MOD_11_RESET(x) #endif #if (BENCHMARK_MODULES & BENCHMARK_MOD_12) - #define BENCHMARK_MOD_12_SET(x) BENCHMARK_SET(x) - #define BENCHMARK_MOD_12_RESET(x) BENCHMARK_RESET(x) +#define BENCHMARK_MOD_12_SET(x) BENCHMARK_SET(x) +#define BENCHMARK_MOD_12_RESET(x) BENCHMARK_RESET(x) #else - #define BENCHMARK_MOD_12_SET(x) - #define BENCHMARK_MOD_12_RESET(x) +#define BENCHMARK_MOD_12_SET(x) +#define BENCHMARK_MOD_12_RESET(x) #endif #if (BENCHMARK_MODULES & BENCHMARK_MOD_13) - #define BENCHMARK_MOD_13_SET(x) BENCHMARK_SET(x) - #define BENCHMARK_MOD_13_RESET(x) BENCHMARK_RESET(x) +#define BENCHMARK_MOD_13_SET(x) BENCHMARK_SET(x) +#define BENCHMARK_MOD_13_RESET(x) BENCHMARK_RESET(x) #else - #define BENCHMARK_MOD_13_SET(x) - #define BENCHMARK_MOD_13_RESET(x) +#define BENCHMARK_MOD_13_SET(x) +#define BENCHMARK_MOD_13_RESET(x) #endif #if (BENCHMARK_MODULES & BENCHMARK_MOD_14) - #define BENCHMARK_MOD_14_SET(x) BENCHMARK_SET(x) - #define BENCHMARK_MOD_14_RESET(x) BENCHMARK_RESET(x) +#define BENCHMARK_MOD_14_SET(x) BENCHMARK_SET(x) +#define BENCHMARK_MOD_14_RESET(x) BENCHMARK_RESET(x) #else - #define BENCHMARK_MOD_14_SET(x) - #define BENCHMARK_MOD_14_RESET(x) +#define BENCHMARK_MOD_14_SET(x) +#define BENCHMARK_MOD_14_RESET(x) #endif #if (BENCHMARK_MODULES & BENCHMARK_MOD_15) - #define BENCHMARK_MOD_15_SET(x) BENCHMARK_SET(x) - #define BENCHMARK_MOD_15_RESET(x) BENCHMARK_RESET(x) +#define BENCHMARK_MOD_15_SET(x) BENCHMARK_SET(x) +#define BENCHMARK_MOD_15_RESET(x) BENCHMARK_RESET(x) #else - #define BENCHMARK_MOD_15_SET(x) - #define BENCHMARK_MOD_15_RESET(x) +#define BENCHMARK_MOD_15_SET(x) +#define BENCHMARK_MOD_15_RESET(x) #endif #if (BENCHMARK_MODULES & BENCHMARK_MOD_16) - #define BENCHMARK_MOD_16_SET(x) BENCHMARK_SET(x) - #define BENCHMARK_MOD_16_RESET(x) BENCHMARK_RESET(x) +#define BENCHMARK_MOD_16_SET(x) BENCHMARK_SET(x) +#define BENCHMARK_MOD_16_RESET(x) BENCHMARK_RESET(x) #else - #define BENCHMARK_MOD_16_SET(x) - #define BENCHMARK_MOD_16_RESET(x) +#define BENCHMARK_MOD_16_SET(x) +#define BENCHMARK_MOD_16_RESET(x) #endif #if (BENCHMARK_MODULES & BENCHMARK_MOD_17) - #define BENCHMARK_MOD_17_SET(x) BENCHMARK_SET(x) - #define BENCHMARK_MOD_17_RESET(x) BENCHMARK_RESET(x) +#define BENCHMARK_MOD_17_SET(x) BENCHMARK_SET(x) +#define BENCHMARK_MOD_17_RESET(x) BENCHMARK_RESET(x) #else - #define BENCHMARK_MOD_17_SET(x) - #define BENCHMARK_MOD_17_RESET(x) +#define BENCHMARK_MOD_17_SET(x) +#define BENCHMARK_MOD_17_RESET(x) #endif #if (BENCHMARK_MODULES & BENCHMARK_MOD_18) - #define BENCHMARK_MOD_18_SET(x) BENCHMARK_SET(x) - #define BENCHMARK_MOD_18_RESET(x) BENCHMARK_RESET(x) +#define BENCHMARK_MOD_18_SET(x) BENCHMARK_SET(x) +#define BENCHMARK_MOD_18_RESET(x) BENCHMARK_RESET(x) #else - #define BENCHMARK_MOD_18_SET(x) - #define BENCHMARK_MOD_18_RESET(x) +#define BENCHMARK_MOD_18_SET(x) +#define BENCHMARK_MOD_18_RESET(x) #endif #if (BENCHMARK_MODULES & BENCHMARK_MOD_19) - #define BENCHMARK_MOD_19_SET(x) BENCHMARK_SET(x) - #define BENCHMARK_MOD_19_RESET(x) BENCHMARK_RESET(x) +#define BENCHMARK_MOD_19_SET(x) BENCHMARK_SET(x) +#define BENCHMARK_MOD_19_RESET(x) BENCHMARK_RESET(x) #else - #define BENCHMARK_MOD_19_SET(x) - #define BENCHMARK_MOD_19_RESET(x) +#define BENCHMARK_MOD_19_SET(x) +#define BENCHMARK_MOD_19_RESET(x) #endif #if (BENCHMARK_MODULES & BENCHMARK_MOD_20) - #define BENCHMARK_MOD_20_SET(x) BENCHMARK_SET(x) - #define BENCHMARK_MOD_20_RESET(x) BENCHMARK_RESET(x) +#define BENCHMARK_MOD_20_SET(x) BENCHMARK_SET(x) +#define BENCHMARK_MOD_20_RESET(x) BENCHMARK_RESET(x) #else - #define BENCHMARK_MOD_20_SET(x) - #define BENCHMARK_MOD_20_RESET(x) +#define BENCHMARK_MOD_20_SET(x) +#define BENCHMARK_MOD_20_RESET(x) #endif #if (BENCHMARK_MODULES & BENCHMARK_MOD_21) - #define BENCHMARK_MOD_21_SET(x) BENCHMARK_SET(x) - #define BENCHMARK_MOD_21_RESET(x) BENCHMARK_RESET(x) +#define BENCHMARK_MOD_21_SET(x) BENCHMARK_SET(x) +#define BENCHMARK_MOD_21_RESET(x) BENCHMARK_RESET(x) #else - #define BENCHMARK_MOD_21_SET(x) - #define BENCHMARK_MOD_21_RESET(x) +#define BENCHMARK_MOD_21_SET(x) +#define BENCHMARK_MOD_21_RESET(x) #endif #if (BENCHMARK_MODULES & BENCHMARK_MOD_22) - #define BENCHMARK_MOD_22_SET(x) BENCHMARK_SET(x) - #define BENCHMARK_MOD_22_RESET(x) BENCHMARK_RESET(x) +#define BENCHMARK_MOD_22_SET(x) BENCHMARK_SET(x) +#define BENCHMARK_MOD_22_RESET(x) BENCHMARK_RESET(x) #else - #define BENCHMARK_MOD_22_SET(x) - #define BENCHMARK_MOD_22_RESET(x) +#define BENCHMARK_MOD_22_SET(x) +#define BENCHMARK_MOD_22_RESET(x) #endif #if (BENCHMARK_MODULES & BENCHMARK_MOD_23) - #define BENCHMARK_MOD_23_SET(x) BENCHMARK_SET(x) - #define BENCHMARK_MOD_23_RESET(x) BENCHMARK_RESET(x) +#define BENCHMARK_MOD_23_SET(x) BENCHMARK_SET(x) +#define BENCHMARK_MOD_23_RESET(x) BENCHMARK_RESET(x) #else - #define BENCHMARK_MOD_23_SET(x) - #define BENCHMARK_MOD_23_RESET(x) +#define BENCHMARK_MOD_23_SET(x) +#define BENCHMARK_MOD_23_RESET(x) #endif #if (BENCHMARK_MODULES & BENCHMARK_MOD_24) - #define BENCHMARK_MOD_24_SET(x) BENCHMARK_SET(x) - #define BENCHMARK_MOD_24_RESET(x) BENCHMARK_RESET(x) +#define BENCHMARK_MOD_24_SET(x) BENCHMARK_SET(x) +#define BENCHMARK_MOD_24_RESET(x) BENCHMARK_RESET(x) #else - #define BENCHMARK_MOD_24_SET(x) - #define BENCHMARK_MOD_24_RESET(x) +#define BENCHMARK_MOD_24_SET(x) +#define BENCHMARK_MOD_24_RESET(x) #endif #if (BENCHMARK_MODULES & BENCHMARK_MOD_25) - #define BENCHMARK_MOD_25_SET(x) BENCHMARK_SET(x) - #define BENCHMARK_MOD_25_RESET(x) BENCHMARK_RESET(x) +#define BENCHMARK_MOD_25_SET(x) BENCHMARK_SET(x) +#define BENCHMARK_MOD_25_RESET(x) BENCHMARK_RESET(x) #else - #define BENCHMARK_MOD_25_SET(x) - #define BENCHMARK_MOD_25_RESET(x) +#define BENCHMARK_MOD_25_SET(x) +#define BENCHMARK_MOD_25_RESET(x) #endif #if (BENCHMARK_MODULES & BENCHMARK_MOD_26) - #define BENCHMARK_MOD_26_SET(x) BENCHMARK_SET(x) - #define BENCHMARK_MOD_26_RESET(x) BENCHMARK_RESET(x) +#define BENCHMARK_MOD_26_SET(x) BENCHMARK_SET(x) +#define BENCHMARK_MOD_26_RESET(x) BENCHMARK_RESET(x) #else - #define BENCHMARK_MOD_26_SET(x) - #define BENCHMARK_MOD_26_RESET(x) +#define BENCHMARK_MOD_26_SET(x) +#define BENCHMARK_MOD_26_RESET(x) #endif #if (BENCHMARK_MODULES & BENCHMARK_MOD_27) - #define BENCHMARK_MOD_27_SET(x) BENCHMARK_SET(x) - #define BENCHMARK_MOD_27_RESET(x) BENCHMARK_RESET(x) +#define BENCHMARK_MOD_27_SET(x) BENCHMARK_SET(x) +#define BENCHMARK_MOD_27_RESET(x) BENCHMARK_RESET(x) #else - #define BENCHMARK_MOD_27_SET(x) - #define BENCHMARK_MOD_27_RESET(x) +#define BENCHMARK_MOD_27_SET(x) +#define BENCHMARK_MOD_27_RESET(x) #endif #if (BENCHMARK_MODULES & BENCHMARK_MOD_28) - #define BENCHMARK_MOD_28_SET(x) BENCHMARK_SET(x) - #define BENCHMARK_MOD_28_RESET(x) BENCHMARK_RESET(x) +#define BENCHMARK_MOD_28_SET(x) BENCHMARK_SET(x) +#define BENCHMARK_MOD_28_RESET(x) BENCHMARK_RESET(x) #else - #define BENCHMARK_MOD_28_SET(x) - #define BENCHMARK_MOD_28_RESET(x) +#define BENCHMARK_MOD_28_SET(x) +#define BENCHMARK_MOD_28_RESET(x) #endif #if (BENCHMARK_MODULES & BENCHMARK_MOD_29) - #define BENCHMARK_MOD_29_SET(x) BENCHMARK_SET(x) - #define BENCHMARK_MOD_29_RESET(x) BENCHMARK_RESET(x) +#define BENCHMARK_MOD_29_SET(x) BENCHMARK_SET(x) +#define BENCHMARK_MOD_29_RESET(x) BENCHMARK_RESET(x) #else - #define BENCHMARK_MOD_29_SET(x) - #define BENCHMARK_MOD_29_RESET(x) +#define BENCHMARK_MOD_29_SET(x) +#define BENCHMARK_MOD_29_RESET(x) #endif #if (BENCHMARK_MODULES & BENCHMARK_MOD_30) - #define BENCHMARK_MOD_30_SET(x) BENCHMARK_SET(x) - #define BENCHMARK_MOD_30_RESET(x) BENCHMARK_RESET(x) +#define BENCHMARK_MOD_30_SET(x) BENCHMARK_SET(x) +#define BENCHMARK_MOD_30_RESET(x) BENCHMARK_RESET(x) #else - #define BENCHMARK_MOD_30_SET(x) - #define BENCHMARK_MOD_30_RESET(x) +#define BENCHMARK_MOD_30_SET(x) +#define BENCHMARK_MOD_30_RESET(x) #endif #if (BENCHMARK_MODULES & BENCHMARK_MOD_31) - #define BENCHMARK_MOD_31_SET(x) BENCHMARK_SET(x) - #define BENCHMARK_MOD_31_RESET(x) BENCHMARK_RESET(x) +#define BENCHMARK_MOD_31_SET(x) BENCHMARK_SET(x) +#define BENCHMARK_MOD_31_RESET(x) BENCHMARK_RESET(x) #else - #define BENCHMARK_MOD_31_SET(x) - #define BENCHMARK_MOD_31_RESET(x) +#define BENCHMARK_MOD_31_SET(x) +#define BENCHMARK_MOD_31_RESET(x) #endif #if (BENCHMARK_MODULES & BENCHMARK_MOD_32) - #define BENCHMARK_MOD_32_SET(x) BENCHMARK_SET(x) - #define BENCHMARK_MOD_32_RESET(x) BENCHMARK_RESET(x) +#define BENCHMARK_MOD_32_SET(x) BENCHMARK_SET(x) +#define BENCHMARK_MOD_32_RESET(x) BENCHMARK_RESET(x) #else - #define BENCHMARK_MOD_32_SET(x) - #define BENCHMARK_MOD_32_RESET(x) +#define BENCHMARK_MOD_32_SET(x) +#define BENCHMARK_MOD_32_RESET(x) #endif - //--------------------------------------------------------------------------- // modul global types //--------------------------------------------------------------------------- - //--------------------------------------------------------------------------- // local vars //--------------------------------------------------------------------------- - //--------------------------------------------------------------------------- // local function prototypes //--------------------------------------------------------------------------- - #endif // _BENCHMARK_H_ |