Vector Optimized Library of Kernels  2.3
Architecture-tuned implementations of math kernels
volk_prefs.h
Go to the documentation of this file.
1 #ifndef INCLUDED_VOLK_PREFS_H
2 #define INCLUDED_VOLK_PREFS_H
3 
4 #include <stdbool.h>
5 #include <stdlib.h>
6 #include <volk/volk_common.h>
7 
9 
10 typedef struct volk_arch_pref {
11  char name[128]; // name of the kernel
12  char impl_a[128]; // best aligned impl
13  char impl_u[128]; // best unaligned impl
15 
17 // get path to volk_config profiling info; second arguments specifies
18 // if config file should be tested on existence for reading.
19 // returns \0 in the argument on failure.
21 VOLK_API void volk_get_config_path(char*, bool);
22 
24 // load prefs into global prefs struct
27 
29 
30 #endif // INCLUDED_VOLK_PREFS_H
VOLK_API
VOLK_API
A function pointer to the fastest aligned implementation.
Definition: volk.tmpl.h:85
volk_arch_pref::impl_a
char impl_a[128]
Definition: volk_prefs.h:12
__VOLK_DECL_END
#define __VOLK_DECL_END
Definition: volk_common.h:85
volk_common.h
volk_get_config_path
VOLK_API void volk_get_config_path(char *, bool)
Definition: volk_prefs.c:14
volk_arch_pref_t
__VOLK_DECL_BEGIN struct volk_arch_pref volk_arch_pref_t
__VOLK_DECL_BEGIN
#define __VOLK_DECL_BEGIN
Definition: volk_common.h:84
volk_arch_pref::name
char name[128]
Definition: volk_prefs.h:11
volk_arch_pref
Definition: volk_prefs.h:10
volk_load_preferences
VOLK_API size_t volk_load_preferences(volk_arch_pref_t **)
Definition: volk_prefs.c:66
volk_arch_pref::impl_u
char impl_u[128]
Definition: volk_prefs.h:13