Skip to content

Instantly share code, notes, and snippets.

@Validark
Created September 3, 2024 11:43
Show Gist options
  • Save Validark/dc59fe30136ca1cb27b109a1b8e5e54b to your computer and use it in GitHub Desktop.
Save Validark/dc59fe30136ca1cb27b109a1b8e5e54b to your computer and use it in GitHub Desktop.
st4.zig
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