CNDP
22.08.0
|
Go to the source code of this file.
Typedefs | |
typedef uint8_t | cne_v64u8_t |
typedef uint16_t | cne_v64u16_t |
typedef uint32_t | cne_v64u32_t |
typedef uint8_t | cne_v128u8_t |
typedef uint16_t | cne_v128u16_t |
typedef uint32_t | cne_v128u32_t |
typedef uint64_t | cne_v128u64_t |
typedef uint8_t | cne_v256u8_t |
typedef uint16_t | cne_v256u16_t |
typedef uint32_t | cne_v256u32_t |
typedef uint64_t | cne_v256u64_t |
typedef int8_t | cne_v64s8_t |
typedef int16_t | cne_v64s16_t |
typedef int32_t | cne_v64s32_t |
typedef int8_t | cne_v128s8_t |
typedef int16_t | cne_v128s16_t |
typedef int32_t | cne_v128s32_t |
typedef int64_t | cne_v128s64_t |
typedef int8_t | cne_v256s8_t |
typedef int16_t | cne_v256s16_t |
typedef int32_t | cne_v256s32_t |
typedef int64_t | cne_v256s64_t |
Enumerations | |
enum | cne_vect_max_simd { CNE_VECT_SIMD_DISABLED = 64 , CNE_VECT_SIMD_128 = 128 , CNE_VECT_SIMD_256 = 256 , CNE_VECT_SIMD_512 = 512 , CNE_VECT_SIMD_MAX = INT16_MAX + 1 } |
Functions | |
uint16_t | cne_vect_get_max_simd_bitwidth (void) |
int | cne_vect_set_max_simd_bitwidth (uint16_t bitwidth) |
SIMD vector types and control
This file defines types to use vector instructions with generic C code and APIs to enable the code using them.
Definition in file cne_vect_generic.h.
typedef uint8_t cne_v64u8_t |
64 bits vector size to use with unsigned 8 bits elements.
a = (cne_v64u8_t){ a0, a1, a2, a3, a4, a5, a6, a7 }
Definition at line 27 of file cne_vect_generic.h.
typedef uint16_t cne_v64u16_t |
64 bits vector size to use with unsigned 16 bits elements.
a = (cne_v64u16_t){ a0, a1, a2, a3 }
Definition at line 34 of file cne_vect_generic.h.
typedef uint32_t cne_v64u32_t |
64 bits vector size to use with unsigned 32 bits elements.
a = (cne_v64u32_t){ a0, a1 }
Definition at line 41 of file cne_vect_generic.h.
typedef uint8_t cne_v128u8_t |
128 bits vector size to use with unsigned 8 bits elements.
a = (cne_v128u8_t){ a00, a01, a02, a03, a04, a05, a06, a07, a08, a09, a10, a11, a12, a13, a14, a15 }
Definition at line 49 of file cne_vect_generic.h.
typedef uint16_t cne_v128u16_t |
128 bits vector size to use with unsigned 16 bits elements.
a = (cne_v128u16_t){ a0, a1, a2, a3, a4, a5, a6, a7 }
Definition at line 56 of file cne_vect_generic.h.
typedef uint32_t cne_v128u32_t |
128 bits vector size to use with unsigned 32 bits elements.
a = (cne_v128u32_t){ a0, a1, a2, a3 }
Definition at line 63 of file cne_vect_generic.h.
typedef uint64_t cne_v128u64_t |
128 bits vector size to use with unsigned 64 bits elements.
a = (cne_v128u64_t){ a0, a1 }
Definition at line 70 of file cne_vect_generic.h.
typedef uint8_t cne_v256u8_t |
256 bits vector size to use with unsigned 8 bits elements.
a = (cne_v256u8_t){ a00, a01, a02, a03, a04, a05, a06, a07, a08, a09, a10, a11, a12, a13, a14, a15, a16, a17, a18, a19, a20, a21, a22, a23, a24, a25, a26, a27, a28, a29, a30, a31 }
Definition at line 80 of file cne_vect_generic.h.
typedef uint16_t cne_v256u16_t |
256 bits vector size to use with unsigned 16 bits elements.
a = (cne_v256u16_t){ a00, a01, a02, a03, a04, a05, a06, a07, a08, a09, a10, a11, a12, a13, a14, a15 }
Definition at line 88 of file cne_vect_generic.h.
typedef uint32_t cne_v256u32_t |
256 bits vector size to use with unsigned 32 bits elements.
a = (cne_v256u32_t){ a0, a1, a2, a3, a4, a5, a6, a7 }
Definition at line 95 of file cne_vect_generic.h.
typedef uint64_t cne_v256u64_t |
256 bits vector size to use with unsigned 64 bits elements.
a = (cne_v256u64_t){ a0, a1, a2, a3 }
Definition at line 102 of file cne_vect_generic.h.
typedef int8_t cne_v64s8_t |
64 bits vector size to use with 8 bits elements.
a = (cne_v64s8_t){ a0, a1, a2, a3, a4, a5, a6, a7 }
Definition at line 111 of file cne_vect_generic.h.
typedef int16_t cne_v64s16_t |
64 bits vector size to use with 16 bits elements.
a = (cne_v64s16_t){ a0, a1, a2, a3 }
Definition at line 118 of file cne_vect_generic.h.
typedef int32_t cne_v64s32_t |
64 bits vector size to use with 32 bits elements.
a = (cne_v64s32_t){ a0, a1 }
Definition at line 125 of file cne_vect_generic.h.
typedef int8_t cne_v128s8_t |
128 bits vector size to use with 8 bits elements.
a = (cne_v128s8_t){ a00, a01, a02, a03, a04, a05, a06, a07, a08, a09, a10, a11, a12, a13, a14, a15 }
Definition at line 133 of file cne_vect_generic.h.
typedef int16_t cne_v128s16_t |
128 bits vector size to use with 16 bits elements.
a = (cne_v128s16_t){ a0, a1, a2, a3, a4, a5, a6, a7 }
Definition at line 140 of file cne_vect_generic.h.
typedef int32_t cne_v128s32_t |
128 bits vector size to use with 32 bits elements.
a = (cne_v128s32_t){ a0, a1, a2, a3 }
Definition at line 147 of file cne_vect_generic.h.
typedef int64_t cne_v128s64_t |
128 bits vector size to use with 64 bits elements.
a = (cne_v128s64_t){ a1, a2 }
Definition at line 154 of file cne_vect_generic.h.
typedef int8_t cne_v256s8_t |
256 bits vector size to use with 8 bits elements.
a = (cne_v256s8_t){ a00, a01, a02, a03, a04, a05, a06, a07, a08, a09, a10, a11, a12, a13, a14, a15, a16, a17, a18, a19, a20, a21, a22, a23, a24, a25, a26, a27, a28, a29, a30, a31 }
Definition at line 164 of file cne_vect_generic.h.
typedef int16_t cne_v256s16_t |
256 bits vector size to use with 16 bits elements.
a = (cne_v256s16_t){ a00, a01, a02, a03, a04, a05, a06, a07, a08, a09, a10, a11, a12, a13, a14, a15 }
Definition at line 172 of file cne_vect_generic.h.
typedef int32_t cne_v256s32_t |
256 bits vector size to use with 32 bits elements.
a = (cne_v256s32_t){ a0, a1, a2, a3, a4, a5, a6, a7 }
Definition at line 179 of file cne_vect_generic.h.
typedef int64_t cne_v256s64_t |
256 bits vector size to use with 64 bits elements.
a = (cne_v256s64_t){ a0, a1, a2, a3 }
Definition at line 186 of file cne_vect_generic.h.
enum cne_vect_max_simd |
The max SIMD bitwidth value to limit vector path selection.
Definition at line 191 of file cne_vect_generic.h.
uint16_t cne_vect_get_max_simd_bitwidth | ( | void | ) |
Get the supported SIMD bitwidth.
int cne_vect_set_max_simd_bitwidth | ( | uint16_t | bitwidth | ) |
Set the supported SIMD bitwidth. This API should only be called once at initialization, before init.
bitwidth | uint16_t bitwidth. |