FreeRDP
prim_test.c File Reference
#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_tgeneric = NULL
 
primitives_toptimized = NULL
 
BOOL g_TestPrimitivesPerformance = FALSE
 
UINT32 g_Iterations = 1000
 
int test_sizes [] = { 8, 16, 32, 64, 128, 256, 512, 1024, 2048, 4096 }
 

Function Documentation

◆ measure_delta_time()

float measure_delta_time ( UINT64  t0,
UINT64  t1 
)
Here is the call graph for this function:

◆ measure_floatprint()

void measure_floatprint ( float  t,
char *  output 
)

◆ prim_test_setup()

void prim_test_setup ( BOOL  performance)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ speed_test()

BOOL speed_test ( const char *  name,
const char *  dsc,
UINT32  iterations,
pstatus_t(*)()  fkt_generic,
pstatus_t(*)()  optimised,
  ... 
)
Here is the caller graph for this function:

Variable Documentation

◆ g_Iterations

UINT32 g_Iterations = 1000

◆ g_TestPrimitivesPerformance

BOOL g_TestPrimitivesPerformance = FALSE

◆ generic

primitives_t* generic = NULL

◆ optimized

primitives_t* optimized = NULL

◆ test_sizes

int test_sizes[] = { 8, 16, 32, 64, 128, 256, 512, 1024, 2048, 4096 }