Searched refs:BMK_timedFnState_t (Results 1 - 3 of 3) sorted by relevance
/freebsd-13-stable/sys/contrib/zstd/programs/ |
H A D | benchfn.h | 136 typedef struct BMK_timedFnState_s BMK_timedFnState_t; typedef in typeref:struct:BMK_timedFnState_s 146 BMK_runOutcome_t BMK_benchTimedFn(BMK_timedFnState_t* timedFnState, 151 int BMK_isCompleted_TimedFn(const BMK_timedFnState_t* timedFnState); 154 * Create/Set BMK_timedFnState_t for next benchmark session, 158 BMK_timedFnState_t* BMK_createTimedFnState(unsigned total_ms, unsigned run_ms); 159 void BMK_resetTimedFnState(BMK_timedFnState_t* timedFnState, unsigned total_ms, unsigned run_ms); 160 void BMK_freeTimedFnState(BMK_timedFnState_t* state); 164 * Makes it possible to statically allocate a BMK_timedFnState_t on stack. 167 * BMK_timedFnState_t() actually accepts any buffer. 176 BMK_timedFnState_t* BMK_initStatic_timedFnStat [all...] |
H A D | benchfn.c | 158 }; /* typedef'd to BMK_timedFnState_t within bench.h */ 160 BMK_timedFnState_t* BMK_createTimedFnState(unsigned total_ms, unsigned run_ms) 162 BMK_timedFnState_t* const r = (BMK_timedFnState_t*)malloc(sizeof(*r)); 168 void BMK_freeTimedFnState(BMK_timedFnState_t* state) { free(state); } 170 BMK_timedFnState_t* 174 typedef struct { check_size c; BMK_timedFnState_t tfs; } tfs_align; /* force tfs to be aligned at its next best position */ 175 size_t const tfs_alignment = offsetof(tfs_align, tfs); /* provides the minimal alignment restriction for BMK_timedFnState_t */ 176 BMK_timedFnState_t* const r = (BMK_timedFnState_t*)buffe [all...] |
H A D | benchzstd.c | 305 BMK_timedFnState_t* timeStateCompress, 306 BMK_timedFnState_t* timeStateDecompress, 582 BMK_timedFnState_t* timeStateCompress = BMK_createTimedFnState(adv->nbSeconds * 1000, BMK_RUNTEST_DEFAULT_MS); 583 BMK_timedFnState_t* timeStateDecompress = BMK_createTimedFnState(adv->nbSeconds * 1000, BMK_RUNTEST_DEFAULT_MS);
|
Completed in 95 milliseconds