Created
September 3, 2024 11:43
-
-
Save Validark/dc59fe30136ca1cb27b109a1b8e5e54b to your computer and use it in GitHub Desktop.
st4.zig
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export fn st4(vec: @Vector(64, u8), ptr: [*]u8) void { | |
const chunks: [4]@Vector(16, u8) = @bitCast(vec); | |
return struct { | |
extern fn @"llvm.aarch64.neon.st4.v16i8.p0"( | |
@Vector(16, u8), | |
@Vector(16, u8), | |
@Vector(16, u8), | |
@Vector(16, u8), | |
[*]u8 | |
) void; | |
}.@"llvm.aarch64.neon.st4.v16i8.p0"(chunks[0], chunks[1], chunks[2], chunks[3], ptr); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment