FreeRDP
prim_test.c File Reference
#include "prim_test.h"
#include <fcntl.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <winpr/sysinfo.h>
#include <winpr/platform.h>
#include <winpr/crypto.h>

Functions

float _delta_time (const struct timespec *t0, const struct timespec *t1)
 
void _floatprint (float t, char *output)
 
void prim_test_setup (BOOL performance)
 
BOOL speed_test (const char *name, const char *dsc, UINT32 iterations, pstatus_t(*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

float _delta_time ( const struct timespec *  t0,
const struct timespec *  t1 
)
void _floatprint ( float  t,
char *  output 
)
void prim_test_setup ( BOOL  performance)

Here is the call graph for this function:

Here is the caller graph for this function:

BOOL speed_test ( const char *  name,
const char *  dsc,
UINT32  iterations,
pstatus_t(*)()  generic,
pstatus_t(*)()  optimised,
  ... 
)

Here is the caller graph for this function:

Variable Documentation

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 }