NRK's Homepage personal blog

Decoding UTF8 with parallel extract

As a side-quest I recently decided to write a branchless utf8 decoder utilizing the pext or "parallel extract" instruction. It's compliant with rfc-3629 , meaning that it doesn't just naively decode the code-point but also checks for overlong encoding, surrogate pairs and such. Compiled with gcc -O3 -march=x86-64-v3…
Points
111
HN comments
20
Submissions
1
Cited by
0 commenters

Software EngineeringSystems & Performance2024

On Hacker News

SubmittedTitle on HNPointsComments
May 5, 2024Decoding UTF8 with parallel extract by g0xA52A2A11120

More from NRK's Homepage

All 4 posts →

Related posts from the same era