#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) |
|
void | print_number (const int64_t x) |
|
void | run_benchmark (char *name, void(*benchmark)(void *, int), void(*setup)(void *), void(*teardown)(void *, int), void *data, int count, int iter) |
|
int | have_flag (int argc, char **argv, char *flag) |
|
int | get_iters (int default_iters) |
|
◆ FP_EXP
◆ FP_MULT
#define FP_MULT (1000000LL) |
◆ get_iters()
int get_iters |
( |
int |
default_iters | ) |
|
◆ gettime_i64()
static int64_t gettime_i64 |
( |
void |
| ) |
|
|
static |
◆ have_flag()
int have_flag |
( |
int |
argc, |
|
|
char ** |
argv, |
|
|
char * |
flag |
|
) |
| |
◆ print_number()
void print_number |
( |
const int64_t |
x | ) |
|
◆ run_benchmark()
void run_benchmark |
( |
char * |
name, |
|
|
void(*)(void *, int) |
benchmark, |
|
|
void(*)(void *) |
setup, |
|
|
void(*)(void *, int) |
teardown, |
|
|
void * |
data, |
|
|
int |
count, |
|
|
int |
iter |
|
) |
| |