#include <stdlib.h>
#include <stdint.h>
#include <stdio.h>
#include <string.h>
#include <sys/time.h>
Go to the source code of this file.
|
static int64_t | gettime_i64 (void) |
|
static void | print_number (const int64_t x) |
|
static void | run_benchmark (char *name, void(*benchmark)(void *, int), void(*setup)(void *), void(*teardown)(void *, int), void *data, int count, int iter) |
|
static int | have_flag (int argc, char **argv, char *flag) |
|
static int | have_invalid_args (int argc, char **argv, char **valid_args, size_t n) |
|
static int | get_iters (int default_iters) |
|
static void | print_output_table_header_row (void) |
|
◆ FP_EXP
◆ FP_MULT
#define FP_MULT (1000000LL) |
◆ get_iters()
static int get_iters |
( |
int |
default_iters | ) |
|
|
static |
◆ gettime_i64()
static int64_t gettime_i64 |
( |
void |
| ) |
|
|
static |
◆ have_flag()
static int have_flag |
( |
int |
argc, |
|
|
char ** |
argv, |
|
|
char * |
flag |
|
) |
| |
|
static |
◆ have_invalid_args()
static int have_invalid_args |
( |
int |
argc, |
|
|
char ** |
argv, |
|
|
char ** |
valid_args, |
|
|
size_t |
n |
|
) |
| |
|
static |
◆ print_number()
static void print_number |
( |
const int64_t |
x | ) |
|
|
static |
◆ print_output_table_header_row()
static void print_output_table_header_row |
( |
void |
| ) |
|
|
static |
◆ run_benchmark()
static void run_benchmark |
( |
char * |
name, |
|
|
void(*)(void *, int) |
benchmark, |
|
|
void(*)(void *) |
setup, |
|
|
void(*)(void *, int) |
teardown, |
|
|
void * |
data, |
|
|
int |
count, |
|
|
int |
iter |
|
) |
| |
|
static |