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

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

Typedef Documentation

typedef pstatus_t(* speed_test_fkt) ()

Function Documentation

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

Variable Documentation

UINT32 g_Iterations
BOOL g_TestPrimitivesPerformance
primitives_t* generic
primitives_t* optimized
int test_sizes[]