Vector Optimized Library of Kernels  2.0
Architecture-tuned implementations of math kernels
qa_utils.h File Reference
#include <stdbool.h>
#include <volk/volk.h>
#include <cstdlib>
#include <map>
#include <string>
#include <vector>
#include "volk/volk_complex.h"

Go to the source code of this file.

Data Structures

struct  volk_type_t
 
class  volk_test_time_t
 
class  volk_test_results_t
 
class  volk_test_params_t
 
class  volk_test_case_t
 

Macros

#define VOLK_RUN_TESTS(func, tol, scalar, len, iter)
 
#define VOLK_PROFILE(func, test_params, results)   run_volk_tests(func##_get_func_desc(), (void (*)())func##_manual, std::string(#func), test_params, results, "NULL")
 
#define VOLK_PUPPET_PROFILE(func, puppet_master_func, test_params, results)   run_volk_tests(func##_get_func_desc(), (void (*)())func##_manual, std::string(#func), test_params, results, std::string(#puppet_master_func))
 

Typedefs

typedef void(* volk_fn_1arg) (void *, unsigned int, const char *)
 
typedef void(* volk_fn_2arg) (void *, void *, unsigned int, const char *)
 
typedef void(* volk_fn_3arg) (void *, void *, void *, unsigned int, const char *)
 
typedef void(* volk_fn_4arg) (void *, void *, void *, void *, unsigned int, const char *)
 
typedef void(* volk_fn_1arg_s32f) (void *, float, unsigned int, const char *)
 
typedef void(* volk_fn_2arg_s32f) (void *, void *, float, unsigned int, const char *)
 
typedef void(* volk_fn_3arg_s32f) (void *, void *, void *, float, unsigned int, const char *)
 
typedef void(* volk_fn_1arg_s32fc) (void *, lv_32fc_t, unsigned int, const char *)
 
typedef void(* volk_fn_2arg_s32fc) (void *, void *, lv_32fc_t, unsigned int, const char *)
 
typedef void(* volk_fn_3arg_s32fc) (void *, void *, void *, lv_32fc_t, unsigned int, const char *)
 

Functions

volk_type_t volk_type_from_string (std::string)
 
float uniform (void)
 
void random_floats (float *buf, unsigned n)
 
bool run_volk_tests (volk_func_desc_t, void(*)(), std::string, volk_test_params_t, std::vector< volk_test_results_t > *results=NULL, std::string puppet_master_name="NULL")
 
bool run_volk_tests (volk_func_desc_t, void(*)(), std::string, float, lv_32fc_t, unsigned int, unsigned int, std::vector< volk_test_results_t > *results=NULL, std::string puppet_master_name="NULL", bool absolute_mode=false, bool benchmark_mode=false)
 

Macro Definition Documentation

◆ VOLK_PROFILE

#define VOLK_PROFILE (   func,
  test_params,
  results 
)    run_volk_tests(func##_get_func_desc(), (void (*)())func##_manual, std::string(#func), test_params, results, "NULL")

◆ VOLK_PUPPET_PROFILE

#define VOLK_PUPPET_PROFILE (   func,
  puppet_master_func,
  test_params,
  results 
)    run_volk_tests(func##_get_func_desc(), (void (*)())func##_manual, std::string(#func), test_params, results, std::string(#puppet_master_func))

◆ VOLK_RUN_TESTS

#define VOLK_RUN_TESTS (   func,
  tol,
  scalar,
  len,
  iter 
)
Value:
BOOST_AUTO_TEST_CASE(func##_test) { \
BOOST_CHECK_EQUAL(run_volk_tests( \
func##_get_func_desc(), (void (*)())func##_manual, \
std::string(#func), tol, scalar, len, iter, 0, "NULL"), \
0); \
}
bool run_volk_tests(volk_func_desc_t, void(*)(), std::string, volk_test_params_t, std::vector< volk_test_results_t > *results=NULL, std::string puppet_master_name="NULL")
Definition: qa_utils.cc:380

Typedef Documentation

◆ volk_fn_1arg

typedef void(* volk_fn_1arg) (void *, unsigned int, const char *)

◆ volk_fn_1arg_s32f

typedef void(* volk_fn_1arg_s32f) (void *, float, unsigned int, const char *)

◆ volk_fn_1arg_s32fc

typedef void(* volk_fn_1arg_s32fc) (void *, lv_32fc_t, unsigned int, const char *)

◆ volk_fn_2arg

typedef void(* volk_fn_2arg) (void *, void *, unsigned int, const char *)

◆ volk_fn_2arg_s32f

typedef void(* volk_fn_2arg_s32f) (void *, void *, float, unsigned int, const char *)

◆ volk_fn_2arg_s32fc

typedef void(* volk_fn_2arg_s32fc) (void *, void *, lv_32fc_t, unsigned int, const char *)

◆ volk_fn_3arg

typedef void(* volk_fn_3arg) (void *, void *, void *, unsigned int, const char *)

◆ volk_fn_3arg_s32f

typedef void(* volk_fn_3arg_s32f) (void *, void *, void *, float, unsigned int, const char *)

◆ volk_fn_3arg_s32fc

typedef void(* volk_fn_3arg_s32fc) (void *, void *, void *, lv_32fc_t, unsigned int, const char *)

◆ volk_fn_4arg

typedef void(* volk_fn_4arg) (void *, void *, void *, void *, unsigned int, const char *)

Function Documentation

◆ random_floats()

void random_floats ( float *  buf,
unsigned  n 
)

◆ run_volk_tests() [1/2]

bool run_volk_tests ( volk_func_desc_t  ,
void(*)()  ,
std::string  ,
volk_test_params_t  ,
std::vector< volk_test_results_t > *  results = NULL,
std::string  puppet_master_name = "NULL" 
)

◆ run_volk_tests() [2/2]

bool run_volk_tests ( volk_func_desc_t  ,
void(*)()  ,
std::string  ,
float  ,
lv_32fc_t  ,
unsigned  int,
unsigned  int,
std::vector< volk_test_results_t > *  results = NULL,
std::string  puppet_master_name = "NULL",
bool  absolute_mode = false,
bool  benchmark_mode = false 
)

◆ uniform()

float uniform ( void  )

◆ volk_type_from_string()

volk_type_t volk_type_from_string ( std::string  )