FreeRDP
|
#include <freerdp/config.h>
#include "prim_test.h"
#include <fcntl.h>
#include <math.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <winpr/sysinfo.h>
#include <winpr/platform.h>
#include <winpr/crypto.h>
Functions | |
float | measure_delta_time (UINT64 t0, UINT64 t1) |
void | measure_floatprint (float t, char *output) |
void | prim_test_setup (BOOL performance) |
BOOL | speed_test (const char *name, const char *dsc, UINT32 iterations, pstatus_t(*fkt_generic)(), pstatus_t(*optimised)(),...) |
Variables | |
primitives_t * | generic = NULL |
primitives_t * | optimized = NULL |
BOOL | g_TestPrimitivesPerformance = FALSE |
UINT32 | g_Iterations = 1000 |
int | test_sizes [] = { 8, 16, 32, 64, 128, 256, 512, 1024, 2048, 4096 } |
float measure_delta_time | ( | UINT64 | t0, |
UINT64 | t1 | ||
) |
void measure_floatprint | ( | float | t, |
char * | output | ||
) |
void prim_test_setup | ( | BOOL | performance | ) |
BOOL speed_test | ( | const char * | name, |
const char * | dsc, | ||
UINT32 | iterations, | ||
pstatus_t(*)() | fkt_generic, | ||
pstatus_t(*)() | optimised, | ||
... | |||
) |
UINT32 g_Iterations = 1000 |
BOOL g_TestPrimitivesPerformance = FALSE |
primitives_t* generic = NULL |
primitives_t* optimized = NULL |
int test_sizes[] = { 8, 16, 32, 64, 128, 256, 512, 1024, 2048, 4096 } |