Agora  1.2.0
Agora project
simd_types.h
Go to the documentation of this file.
1 
5 #ifndef SIMD_TYPES_H_
6 #define SIMD_TYPES_H_
7 
8 #include <boost/align/aligned_allocator.hpp>
9 #include <complex>
10 #include <cstddef>
11 #include <vector>
12 
13 //Safe for both AVX512 and AVX2
14 constexpr size_t kSimdAlignment = 64u;
15 
16 using SimdAlignByteVector =
17  std::vector<std::byte,
18  boost::alignment::aligned_allocator<std::byte, kSimdAlignment>>;
19 
20 using SimdAlignFltVector =
21  std::vector<float,
22  boost::alignment::aligned_allocator<float, kSimdAlignment>>;
23 
24 using SimdAlignShrtVector =
25  std::vector<short,
26  boost::alignment::aligned_allocator<short, kSimdAlignment>>;
27 
28 using SimdAlignCxFltVector = std::vector<
29  std::complex<float>,
30  boost::alignment::aligned_allocator<std::complex<float>, kSimdAlignment>>;
31 
32 using SimdAlignCxShrtVector = std::vector<
33  std::complex<short>,
34  boost::alignment::aligned_allocator<std::complex<short>, kSimdAlignment>>;
35 
36 #endif // SIMD_TYPES_H_
fmt::v8::detail::byte
byte
Definition: core.h:388
SimdAlignFltVector
std::vector< float, boost::alignment::aligned_allocator< float, kSimdAlignment > > SimdAlignFltVector
Definition: simd_types.h:22
SimdAlignShrtVector
std::vector< short, boost::alignment::aligned_allocator< short, kSimdAlignment > > SimdAlignShrtVector
Definition: simd_types.h:26
SimdAlignCxFltVector
std::vector< std::complex< float >, boost::alignment::aligned_allocator< std::complex< float >, kSimdAlignment > > SimdAlignCxFltVector
Definition: simd_types.h:30
u
Plot Rx waveform for u
Definition: inspect_single_frame.m:108
kSimdAlignment
constexpr size_t kSimdAlignment
Definition: simd_types.h:14
SimdAlignByteVector
std::vector< std::byte, boost::alignment::aligned_allocator< std::byte, kSimdAlignment > > SimdAlignByteVector
Definition: simd_types.h:18
SimdAlignCxShrtVector
std::vector< std::complex< short >, boost::alignment::aligned_allocator< std::complex< short >, kSimdAlignment > > SimdAlignCxShrtVector
Definition: simd_types.h:34