]> pd.if.org Git - liblfds/blob - liblfds/liblfds7.1.0/test_and_benchmark/libbenchmark/src/libbenchmark_internal.h
Initial import (all versions, including the new 7.1.0)
[liblfds] / liblfds / liblfds7.1.0 / test_and_benchmark / libbenchmark / src / libbenchmark_internal.h
1 /***** public prototypes *****/
2 #include "../inc/libbenchmark.h"
3
4 /***** defines *****/
5 #define and &&
6 #define or  ||
7
8 #define NO_FLAGS 0x0
9
10 #define NUMBER_UPPERCASE_LETTERS_IN_LATIN_ALPHABET  26
11 #define NUMBER_OF_NANOSECONDS_IN_ONE_SECOND         1000000000LLU
12 #define TIME_LOOP_COUNT                             1000
13 #define DEFAULT_BENCHMARK_DURATION_IN_SECONDS       5
14
15 #define ONE_KILOBYTES_IN_BYTES                      1024
16
17 #define LIBBENCHMARK_VERSION_STRING   "7.1.0"
18 #define LIBBENCHMARK_VERSION_INTEGER  710
19
20 #define RETURN_SUCCESS 0
21 #define RETURN_FAILURE 1
22
23 #if( defined KERNEL_MODE )
24   #define MODE_TYPE_STRING "kernel-mode"
25 #endif
26
27 #if( !defined KERNEL_MODE )
28   #define MODE_TYPE_STRING "user-mode"
29 #endif
30
31 #if( defined NDEBUG && !defined COVERAGE && !defined TSAN && !defined PROF )
32   #define BUILD_TYPE_STRING "release"
33 #endif
34
35 #if( !defined NDEBUG && !defined COVERAGE && !defined TSAN && !defined PROF )
36   #define BUILD_TYPE_STRING "debug"
37 #endif
38
39 #if( !defined NDEBUG && defined COVERAGE && !defined TSAN && !defined PROF )
40   #define BUILD_TYPE_STRING "coverage"
41 #endif
42
43 #if( !defined NDEBUG && !defined COVERAGE && defined TSAN && !defined PROF )
44   #define BUILD_TYPE_STRING "threadsanitizer"
45 #endif
46
47 #if( !defined NDEBUG && !defined COVERAGE && !defined TSAN && defined PROF )
48   #define BUILD_TYPE_STRING "profiling"
49 #endif
50
51 /***** library-wide prototypes *****/
52