DPDK  21.08.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 #include <rte_compat.h>
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 
199  RTE_VECT_SIMD_MAX = INT16_MAX + 1,
204 };
205 
215 __rte_experimental
216 uint16_t rte_vect_get_max_simd_bitwidth(void);
217 
232 __rte_experimental
233 int rte_vect_set_max_simd_bitwidth(uint16_t bitwidth);
234 
235 #endif /* _RTE_VECT_H_ */
int64_t rte_v256s64_t
Definition: rte_vect.h:187
uint32_t rte_v64u32_t
Definition: rte_vect.h:41
uint8_t rte_v64u8_t
Definition: rte_vect.h:27
uint64_t rte_v256u64_t
Definition: rte_vect.h:102
int8_t rte_v64s8_t
Definition: rte_vect.h:112
__rte_experimental uint16_t rte_vect_get_max_simd_bitwidth(void)
uint32_t rte_v256u32_t
Definition: rte_vect.h:95
int32_t rte_v128s32_t
Definition: rte_vect.h:148
uint8_t rte_v128u8_t
Definition: rte_vect.h:49
int16_t rte_v256s16_t
Definition: rte_vect.h:173
__rte_experimental int rte_vect_set_max_simd_bitwidth(uint16_t bitwidth)
int64_t rte_v128s64_t
Definition: rte_vect.h:155
int16_t rte_v128s16_t
Definition: rte_vect.h:141
int32_t rte_v64s32_t
Definition: rte_vect.h:126
uint16_t rte_v64u16_t
Definition: rte_vect.h:34
uint8_t rte_v256u8_t
Definition: rte_vect.h:80
int32_t rte_v256s32_t
Definition: rte_vect.h:180
int8_t rte_v256s8_t
Definition: rte_vect.h:165
uint64_t rte_v128u64_t
Definition: rte_vect.h:70
int8_t rte_v128s8_t
Definition: rte_vect.h:134
rte_vect_max_simd
Definition: rte_vect.h:192
uint16_t rte_v256u16_t
Definition: rte_vect.h:88
int16_t rte_v64s16_t
Definition: rte_vect.h:119
uint32_t rte_v128u32_t
Definition: rte_vect.h:63
uint16_t rte_v128u16_t
Definition: rte_vect.h:56