acompiled

The catalog contains seeded project examples. Your workspace stores your own projects and conversations.

tsvet/utf8-check

Public
Star9

UTF-8 validation in x86-64: a scalar reference and an AVX2 version that checks 32 bytes per step. Every build fuzzes one against the other.

Code
Blame·1 commit across 23 linesoldernewer
Scalar validator with every range from table 3-7Jul 20 1# Verified builds for utf8-check.
2
3[project]
4isa = "x86-64"
5assembler = "nasm"
6target = "Windows x64 object"
7
8[[step]]
9name = "assemble the scalar reference"
10run = ["nasm", "-f", "win64", "-o", "build/utf8_scalar.obj", "src/utf8_scalar.asm"]
11
12[[step]]
13name = "build the tests"
14run = ["gcc", "-O2", "-Wall", "-o", "build/test.exe", "test/test.c", "build/utf8_scalar.obj"]
15
16[[step]]
17name = "table 3-7"
18on = "windows"
19run = ["./build/test.exe"]
20expect = "0 wrong"
21
22[artifact]
23path = "build/utf8_scalar.obj"