From 2af08bdbe30d4982cf9ed85de42ca5cd80bcf75c Mon Sep 17 00:00:00 2001 From: Jacob Sandlund Date: Sat, 6 Sep 2025 10:42:02 -0400 Subject: trying a bunch of things to get performance to match --- src/simd/codepoint_width.zig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/simd') diff --git a/src/simd/codepoint_width.zig b/src/simd/codepoint_width.zig index e2383aff1..008c7ad9f 100644 --- a/src/simd/codepoint_width.zig +++ b/src/simd/codepoint_width.zig @@ -29,7 +29,8 @@ test "codepointWidth basic" { // const uucode = @import("uucode"); // // const min = 0xFF + 1; // start outside ascii -// for (min..uucode.code_point_range_end) |cp| { +// const max = std.math.maxInt(u21) + 1; +// for (min..max) |cp| { // const simd = codepointWidth(@intCast(cp)); // const uu = @min(2, @max(0, uucode.get(.wcwidth, @intCast(cp)))); // if (simd != uu) mismatch: { -- cgit v1.2.3