mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-08-28 18:11:39 +00:00
simd: indexOf implementation using NEON
This commit is contained in:
@@ -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());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user