DPDK 22.11.7
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
27typedef uint8_t rte_v64u8_t __attribute__((vector_size(8), aligned(8)));
28
34typedef uint16_t rte_v64u16_t __attribute__((vector_size(8), aligned(8)));
35
41typedef uint32_t rte_v64u32_t __attribute__((vector_size(8), aligned(8)));
42
49typedef uint8_t rte_v128u8_t __attribute__((vector_size(16), aligned(16)));
50
56typedef uint16_t rte_v128u16_t __attribute__((vector_size(16), aligned(16)));
57
63typedef uint32_t rte_v128u32_t __attribute__((vector_size(16), aligned(16)));
64
70typedef uint64_t rte_v128u64_t __attribute__((vector_size(16), aligned(16)));
71
80typedef uint8_t rte_v256u8_t __attribute__((vector_size(32), aligned(32)));
81
88typedef uint16_t rte_v256u16_t __attribute__((vector_size(32), aligned(32)));
89
95typedef uint32_t rte_v256u32_t __attribute__((vector_size(32), aligned(32)));
96
102typedef uint64_t rte_v256u64_t __attribute__((vector_size(32), aligned(32)));
103
104
105/* Signed vector types */
106
112typedef int8_t rte_v64s8_t __attribute__((vector_size(8), aligned(8)));
113
119typedef int16_t rte_v64s16_t __attribute__((vector_size(8), aligned(8)));
120
126typedef int32_t rte_v64s32_t __attribute__((vector_size(8), aligned(8)));
127
134typedef int8_t rte_v128s8_t __attribute__((vector_size(16), aligned(16)));
135
141typedef int16_t rte_v128s16_t __attribute__((vector_size(16), aligned(16)));
142
148typedef int32_t rte_v128s32_t __attribute__((vector_size(16), aligned(16)));
149
155typedef int64_t rte_v128s64_t __attribute__((vector_size(16), aligned(16)));
156
165typedef int8_t rte_v256s8_t __attribute__((vector_size(32), aligned(32)));
166
173typedef int16_t rte_v256s16_t __attribute__((vector_size(32), aligned(32)));
174
180typedef int32_t rte_v256s32_t __attribute__((vector_size(32), aligned(32)));
181
187typedef int64_t rte_v256s64_t __attribute__((vector_size(32), aligned(32)));
188
195 RTE_VECT_SIMD_128 = 128,
199 RTE_VECT_SIMD_MAX = INT16_MAX + 1,
204};
205
215__rte_experimental
217
232__rte_experimental
233int rte_vect_set_max_simd_bitwidth(uint16_t bitwidth);
234
235#endif /* _RTE_VECT_H_ */
__rte_experimental int rte_vect_set_max_simd_bitwidth(uint16_t bitwidth)
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
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
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
__rte_experimental uint16_t rte_vect_get_max_simd_bitwidth(void)
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:192
@ RTE_VECT_SIMD_MAX
Definition: rte_vect.h:199
@ RTE_VECT_SIMD_512
Definition: rte_vect.h:198
@ RTE_VECT_SIMD_256
Definition: rte_vect.h:197
@ RTE_VECT_SIMD_DISABLED
Definition: rte_vect.h:193
@ RTE_VECT_SIMD_128
Definition: rte_vect.h:195
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