mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-06-07 12:24:24 +00:00
src/simd: improve isa detection
This commit is contained in:
@@ -1,15 +1,17 @@
|
||||
const std = @import("std");
|
||||
|
||||
const isa = @import("isa.zig");
|
||||
pub const isa = @import("isa.zig");
|
||||
const index_of = @import("index_of.zig");
|
||||
pub usingnamespace isa;
|
||||
pub usingnamespace index_of;
|
||||
|
||||
// const utf8 = @import("utf8.zig");
|
||||
// pub usingnamespace utf8;
|
||||
|
||||
pub fn main() !void {
|
||||
//std.log.warn("ISA={}", .{isa.ISA.detect()});
|
||||
const input = "1234567\x1b1234567\x1b";
|
||||
//const input = "1234567812345678";
|
||||
_ = index_of.indexOf(input, 0x1B);
|
||||
std.log.warn("result={any}", .{index_of.indexOf(input, 0x1B)});
|
||||
}
|
||||
|
||||
test {
|
||||
|
||||
Reference in New Issue
Block a user