mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-25 00:50:22 +00:00
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:
parent
eb6af29421
commit
1d74742c29
Notes:
sideshowbarker
2024-07-18 08:30:48 +09:00
Author: https://github.com/Hendiadyoin1 Commit: https://github.com/SerenityOS/serenity/commit/1d74742c29a Pull-request: https://github.com/SerenityOS/serenity/pull/8610 Reviewed-by: https://github.com/awesomekling Reviewed-by: https://github.com/dascandy
1 changed files with 8 additions and 0 deletions
|
@ -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)));
|
||||
|
|
Loading…
Reference in a new issue