FreeRDP
prim_test.h File Reference
#include <winpr/crt.h>
#include <winpr/spec.h>
#include <winpr/wtypes.h>
#include <winpr/platform.h>
#include <winpr/crypto.h>
#include <freerdp/primitives.h>
#include "measure.h"
This graph shows which files directly or indirectly include this file:

Macros

#define ALIGN(x)   x DECLSPEC_ALIGN(MEMORY_ALLOCATION_ALIGNMENT)
 
#define ABS(_x_)   ((_x_) < 0 ? (-(_x_)) : (_x_))
 
#define MAX_TEST_SIZE   4096
 
#define NUM_TEST_SIZES   10
 

Typedefs

typedef pstatus_t(* speed_test_fkt) ()
 

Functions

void prim_test_setup (BOOL performance)
 
BOOL speed_test (const char *name, const char *dsc, UINT32 iterations, speed_test_fkt generic, speed_test_fkt optimized,...)
 

Variables

int test_sizes []
 
BOOL g_TestPrimitivesPerformance
 
UINT32 g_Iterations
 
primitives_tgeneric
 
primitives_toptimized
 

Macro Definition Documentation

◆ ABS

#define ABS (   _x_)    ((_x_) < 0 ? (-(_x_)) : (_x_))

◆ ALIGN

#define ALIGN (   x)    x DECLSPEC_ALIGN(MEMORY_ALLOCATION_ALIGNMENT)

◆ MAX_TEST_SIZE

#define MAX_TEST_SIZE   4096

◆ NUM_TEST_SIZES

#define NUM_TEST_SIZES   10

Typedef Documentation

◆ speed_test_fkt

typedef pstatus_t(* speed_test_fkt) ()

Function Documentation

◆ 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,
speed_test_fkt  generic,
speed_test_fkt  optimized,
  ... 
)

Variable Documentation

◆ g_Iterations

UINT32 g_Iterations
extern

◆ g_TestPrimitivesPerformance

BOOL g_TestPrimitivesPerformance
extern

◆ generic

primitives_t* generic
extern

◆ optimized

primitives_t* optimized
extern

◆ test_sizes

int test_sizes[]
extern