1 /***** public prototypes *****/
2 #include "../inc/libbenchmark.h"
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
15 #define ONE_KILOBYTES_IN_BYTES 1024
17 #define LIBBENCHMARK_VERSION_STRING "7.1.0"
18 #define LIBBENCHMARK_VERSION_INTEGER 710
20 #define RETURN_SUCCESS 0
21 #define RETURN_FAILURE 1
23 #if( defined KERNEL_MODE )
24 #define MODE_TYPE_STRING "kernel-mode"
27 #if( !defined KERNEL_MODE )
28 #define MODE_TYPE_STRING "user-mode"
31 #if( defined NDEBUG && !defined COVERAGE && !defined TSAN && !defined PROF )
32 #define BUILD_TYPE_STRING "release"
35 #if( !defined NDEBUG && !defined COVERAGE && !defined TSAN && !defined PROF )
36 #define BUILD_TYPE_STRING "debug"
39 #if( !defined NDEBUG && defined COVERAGE && !defined TSAN && !defined PROF )
40 #define BUILD_TYPE_STRING "coverage"
43 #if( !defined NDEBUG && !defined COVERAGE && defined TSAN && !defined PROF )
44 #define BUILD_TYPE_STRING "threadsanitizer"
47 #if( !defined NDEBUG && !defined COVERAGE && !defined TSAN && defined PROF )
48 #define BUILD_TYPE_STRING "profiling"
51 /***** library-wide prototypes *****/