16#ifndef FREERDP_LIB_PRIMTEST_H 
   17#define FREERDP_LIB_PRIMTEST_H 
   20#include <winpr/spec.h> 
   21#include <winpr/wtypes.h> 
   22#include <winpr/platform.h> 
   23#include <winpr/crypto.h> 
   25#include <freerdp/primitives.h> 
   32#define ALIGN(x) x DECLSPEC_ALIGN(MEMORY_ALLOCATION_ALIGNMENT) 
   35#define ABS(_x_) ((_x_) < 0 ? (-(_x_)) : (_x_)) 
   36#define MAX_TEST_SIZE 4096 
   38extern int test_sizes[];
 
   39#define NUM_TEST_SIZES 10 
   41extern BOOL g_TestPrimitivesPerformance;
 
   42extern UINT32 g_Iterations;
 
   47void prim_test_setup(BOOL performance);
 
   49typedef pstatus_t (*speed_test_fkt)();
 
   51BOOL speed_test(
const char* name, 
const char* dsc, UINT32 iterations, speed_test_fkt generic,
 
   52                speed_test_fkt optimized, ...);