DPDK  23.11.0
rte_vect.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: BSD-3-Clause
2  * Copyright 2016 6WIND S.A.
3  */
4 
5 #ifndef _RTE_VECT_H_
6 #define _RTE_VECT_H_
7 
16 #include <stdint.h>
17 
18 #ifndef RTE_TOOLCHAIN_MSVC
19 
20 /* Unsigned vector types */
21 
27 typedef uint8_t rte_v64u8_t __attribute__((vector_size(8), aligned(8)));
28 
34 typedef uint16_t rte_v64u16_t __attribute__((vector_size(8), aligned(8)));
35 
41 typedef uint32_t rte_v64u32_t __attribute__((vector_size(8), aligned(8)));
42 
49 typedef uint8_t rte_v128u8_t __attribute__((vector_size(16), aligned(16)));
50 
56 typedef uint16_t rte_v128u16_t __attribute__((vector_size(16), aligned(16)));
57 
63 typedef uint32_t rte_v128u32_t __attribute__((vector_size(16), aligned(16)));
64 
70 typedef uint64_t rte_v128u64_t __attribute__((vector_size(16), aligned(16)));
71 
80 typedef uint8_t rte_v256u8_t __attribute__((vector_size(32), aligned(32)));
81 
88 typedef uint16_t rte_v256u16_t __attribute__((vector_size(32), aligned(32)));
89 
95 typedef uint32_t rte_v256u32_t __attribute__((vector_size(32), aligned(32)));
96 
102 typedef uint64_t rte_v256u64_t __attribute__((vector_size(32), aligned(32)));
103 
104 
105 /* Signed vector types */
106 
112 typedef int8_t rte_v64s8_t __attribute__((vector_size(8), aligned(8)));
113 
119 typedef int16_t rte_v64s16_t __attribute__((vector_size(8), aligned(8)));
120 
126 typedef int32_t rte_v64s32_t __attribute__((vector_size(8), aligned(8)));
127 
134 typedef int8_t rte_v128s8_t __attribute__((vector_size(16), aligned(16)));
135 
141 typedef int16_t rte_v128s16_t __attribute__((vector_size(16), aligned(16)));
142 
148 typedef int32_t rte_v128s32_t __attribute__((vector_size(16), aligned(16)));
149 
155 typedef int64_t rte_v128s64_t __attribute__((vector_size(16), aligned(16)));
156 
165 typedef int8_t rte_v256s8_t __attribute__((vector_size(32), aligned(32)));
166 
173 typedef int16_t rte_v256s16_t __attribute__((vector_size(32), aligned(32)));
174 
180 typedef int32_t rte_v256s32_t __attribute__((vector_size(32), aligned(32)));
181 
187 typedef int64_t rte_v256s64_t __attribute__((vector_size(32), aligned(32)));
188 
189 #endif
190 
197  RTE_VECT_SIMD_128 = 128,
201  RTE_VECT_SIMD_MAX = INT16_MAX + 1,
206 };
207 
215 
227 int rte_vect_set_max_simd_bitwidth(uint16_t bitwidth);
228 
229 #endif /* _RTE_VECT_H_ */
uint32_t rte_v64u32_t
Definition: rte_vect.h:41
uint32_t rte_v256u32_t
Definition: rte_vect.h:95
uint8_t rte_v256u8_t
Definition: rte_vect.h:80
uint16_t rte_v256u16_t
Definition: rte_vect.h:88
int8_t rte_v256s8_t
Definition: rte_vect.h:165
int16_t rte_v256s16_t
Definition: rte_vect.h:173
int8_t rte_v128s8_t
Definition: rte_vect.h:134
int rte_vect_set_max_simd_bitwidth(uint16_t bitwidth)
int16_t rte_v128s16_t
Definition: rte_vect.h:141
int32_t rte_v64s32_t
Definition: rte_vect.h:126
int32_t rte_v128s32_t
Definition: rte_vect.h:148
uint16_t rte_vect_get_max_simd_bitwidth(void)
int64_t rte_v128s64_t
Definition: rte_vect.h:155
int64_t rte_v256s64_t
Definition: rte_vect.h:187
uint16_t rte_v64u16_t
Definition: rte_vect.h:34
uint64_t rte_v256u64_t
Definition: rte_vect.h:102
uint64_t rte_v128u64_t
Definition: rte_vect.h:70
uint16_t rte_v128u16_t
Definition: rte_vect.h:56
rte_vect_max_simd
Definition: rte_vect.h:194
@ RTE_VECT_SIMD_MAX
Definition: rte_vect.h:201
@ RTE_VECT_SIMD_512
Definition: rte_vect.h:200
@ RTE_VECT_SIMD_256
Definition: rte_vect.h:199
@ RTE_VECT_SIMD_DISABLED
Definition: rte_vect.h:195
@ RTE_VECT_SIMD_128
Definition: rte_vect.h:197
uint32_t rte_v128u32_t
Definition: rte_vect.h:63
int8_t rte_v64s8_t
Definition: rte_vect.h:112
uint8_t rte_v64u8_t
Definition: rte_vect.h:27
int32_t rte_v256s32_t
Definition: rte_vect.h:180
uint8_t rte_v128u8_t
Definition: rte_vect.h:49
int16_t rte_v64s16_t
Definition: rte_vect.h:119