std/brotli: fix the UTF-8 prefix LUT; extend the encoder parity test to qualities 2 to 9

This commit is contained in:
Claude committed 2026-10-27 01:04:57 +00:00
1 parent 09d4b23d09
commit e66b315284
3 files changed
+312 -92

No files matched your search

-2
View File
@@ -692,8 +692,6 @@ pri func encoder.utf8_prefix_lut(b: base.u8) base.u32[..= 2] {
if args.b < 0x80 {
return 0
} else if args.b < 0xC0 {
return 0
} else if args.b < 0xE0 {
return 1
}
return 2