1 #ifndef INCLUDED_LIBVOLK_COMMON_H 2 #define INCLUDED_LIBVOLK_COMMON_H 8 # define __VOLK_ATTR_ALIGNED(x) __attribute__((aligned(x))) 9 # define __VOLK_ATTR_UNUSED __attribute__((unused)) 10 # define __VOLK_ATTR_INLINE __attribute__((always_inline)) 11 # define __VOLK_ATTR_DEPRECATED __attribute__((deprecated)) 12 # define __VOLK_ASM __asm__ 13 # define __VOLK_VOLATILE __volatile__ 15 # define __VOLK_ATTR_EXPORT __attribute__((visibility("default"))) 16 # define __VOLK_ATTR_IMPORT __attribute__((visibility("default"))) 18 # define __VOLK_ATTR_EXPORT 19 # define __VOLK_ATTR_IMPORT 21 # define __VOLK_PREFETCH(addr) __builtin_prefetch(addr) 23 # define __VOLK_ATTR_ALIGNED(x) __declspec(align(x)) 24 # define __VOLK_ATTR_UNUSED 25 # define __VOLK_ATTR_INLINE __forceinline 26 # define __VOLK_ATTR_DEPRECATED __declspec(deprecated) 27 # define __VOLK_ATTR_EXPORT __declspec(dllexport) 28 # define __VOLK_ATTR_IMPORT __declspec(dllimport) 29 # define __VOLK_PREFETCH(addr) 30 # define __VOLK_ASM __asm 31 # define __VOLK_VOLATILE 33 # define __VOLK_ATTR_ALIGNED(x) 34 # define __VOLK_ATTR_UNUSED 35 # define __VOLK_ATTR_INLINE 36 # define __VOLK_ATTR_DEPRECATED 37 # define __VOLK_ATTR_EXPORT 38 # define __VOLK_ATTR_IMPORT 39 # define __VOLK_PREFETCH(addr) 40 # define __VOLK_ASM __asm__ 41 # define __VOLK_VOLATILE __volatile__ 48 # pragma warning(disable: 4244) //'conversion' conversion from 'type1' to 'type2', possible loss of data 49 # pragma warning(disable: 4305) //'identifier' : truncation from 'type1' to 'type2' 56 #if defined(__cplusplus) && (__GNUC__) 57 # define __VOLK_DECL_BEGIN extern "C" { 58 # define __VOLK_DECL_END } 60 # define __VOLK_DECL_BEGIN 61 # define __VOLK_DECL_END 69 # define VOLK_API __VOLK_ATTR_EXPORT 71 # define VOLK_API __VOLK_ATTR_IMPORT 83 #include <x86intrin.h> 118 #define bit128_p(x) ((union bit128 *)(x)) 119 #define bit256_p(x) ((union bit256 *)(x)) uint8_t i8[16]
Definition: volk_common.h:88
uint16_t i16[8]
Definition: volk_common.h:89
__m256d double_vec
Definition: volk_common.h:114
__m256i int_vec
Definition: volk_common.h:113
__m128i int_vec
Definition: volk_common.h:99
__m128d double_vec
Definition: volk_common.h:100
Definition: volk_common.h:104
__m128 float_vec
Definition: volk_common.h:95
__m256 float_vec
Definition: volk_common.h:112
double d[2]
Definition: volk_common.h:92
float f[4]
Definition: volk_common.h:91
Definition: volk_common.h:87
uint32_t i[4]
Definition: volk_common.h:90