Go to the documentation of this file. 1 #ifndef INCLUDE_VOLK_COMPLEX_H
2 #define INCLUDE_VOLK_COMPLEX_H
25 typedef std::complex<int8_t>
lv_8sc_t;
32 template <
typename T>
inline std::complex<T>
lv_cmake(
const T &r,
const T &i){
33 return std::complex<T>(r, i);
36 template <
typename T>
inline typename T::value_type
lv_creal(
const T &x){
40 template <
typename T>
inline typename T::value_type
lv_cimag(
const T &x){
44 template <
typename T>
inline T
lv_conj(
const T &x){
59 #define lv_cmake(r, i) ((r) + _Complex_I*(i))
66 #define lv_creal(x) (__real__(x))
68 #define lv_cimag(x) (__imag__(x))
70 #define lv_conj(x) (~(x))
76 #define lv_creal(x) (creal(x))
78 #define lv_cimag(x) (cimag(x))
80 #define lv_conj(x) (conj(x))