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(*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

◆ _delta_time()

float _delta_time ( const struct timespec *  t0,
const struct timespec *  t1 
)

◆ _floatprint()

void _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 }