AK: Add char SIMD types

These are used in intrinsics, which do not recognize any signed version
of the char type
This commit is contained in:
Hendiadyoin1 2021-07-04 13:54:16 +02:00 committed by Andreas Kling
parent eb6af29421
commit 1d74742c29
Notes: sideshowbarker 2024-07-18 08:30:48 +09:00

View file

@ -21,6 +21,14 @@ using i16x4 = i16 __attribute__((vector_size(8)));
using i16x8 = i16 __attribute__((vector_size(16)));
using i16x16 = i16 __attribute__((vector_size(32)));
// the asm intrinsics demand chars as the 8-bit type, and do not allow
// (un-)signed ones to be used
using c8x2 = char __attribute__((vector_size(2)));
using c8x4 = char __attribute__((vector_size(4)));
using c8x8 = char __attribute__((vector_size(8)));
using c8x16 = char __attribute__((vector_size(16)));
using c8x32 = char __attribute__((vector_size(32)));
using i32x2 = i32 __attribute__((vector_size(8)));
using i32x4 = i32 __attribute__((vector_size(16)));
using i32x8 = i32 __attribute__((vector_size(32)));