From 1d74742c29a008bc5eb66fd456463ffa4559d31a Mon Sep 17 00:00:00 2001 From: Hendiadyoin1 Date: Sun, 4 Jul 2021 13:54:16 +0200 Subject: [PATCH] AK: Add char SIMD types These are used in intrinsics, which do not recognize any signed version of the char type --- AK/SIMD.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/AK/SIMD.h b/AK/SIMD.h index dc7928b2285..b923f7a1110 100644 --- a/AK/SIMD.h +++ b/AK/SIMD.h @@ -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)));