16 #ifndef FREERDP_LIB_PRIMTEST_H
17 #define FREERDP_LIB_PRIMTEST_H
19 #include <winpr/crt.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
38 extern int test_sizes[];
39 #define NUM_TEST_SIZES 10
41 extern BOOL g_TestPrimitivesPerformance;
42 extern UINT32 g_Iterations;
47 void prim_test_setup(BOOL performance);
49 typedef pstatus_t (*speed_test_fkt)();
51 BOOL speed_test(
const char* name,
const char* dsc, UINT32 iterations, speed_test_fkt
generic,
52 speed_test_fkt optimized, ...);