simd: indexOf implementation using NEON

This commit is contained in:
Mitchell Hashimoto
2024-01-28 21:38:09 -08:00
parent 31d5785105
commit 7feba12eab
4 changed files with 174 additions and 1 deletions

View File

@@ -1,8 +1,17 @@
const std = @import("std");
const isa = @import("isa.zig");
const index_of = @import("index_of.zig");
pub usingnamespace isa;
pub usingnamespace index_of;
pub fn main() !void {
std.log.warn("ISA={}", .{isa.ISA.detect()});
//std.log.warn("ISA={}", .{isa.ISA.detect()});
const input = "1234567\x1b1234567\x1b";
//const input = "1234567812345678";
_ = index_of.indexOf(input, 0x1B);
}
test {
@import("std").testing.refAllDecls(@This());
}