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.

build failing · Windows x64 objects, AVX2

AVX2: three nibble tables and a saturating subtract

tsvet committed ·7541806·verified on darwin-x64 in 1 ms

Steps

assemble the scalar reference nasm -f win64 -o build/utf8_scalar.obj src/utf8_scalar.asm 0 ms
nasm is not installed on this build host.
assemble AVX2 nasm -f win64 -o build/utf8_avx2.obj src/utf8_avx2.asm 0 ms
nasm is not installed on this build host.
build the tests gcc -O2 -Wall -o build/test.exe test/test.c build/utf8_scalar.obj build/utf8_avx2.obj 0 ms
gcc is not installed on this build host.
table 3-7 ./build/test.exe windows 0 ms
No windows runner is attached to this build host.
build the benchmark gcc -O2 -Wall -o build/bench.exe bench/bench.c build/utf8_scalar.obj build/utf8_avx2.obj 0 ms
gcc is not installed on this build host.
time both on 64 MiB ./build/bench.exe windows 0 ms
No windows runner is attached to this build host.

Artifacts

build/utf8_avx2.obj not produced · build/utf8_avx2.obj was not produced by the build
build/utf8_scalar.obj not produced · build/utf8_scalar.obj was not produced by the build

Toolchain