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
| Submitted | Title on HN | Points | Comments |
|---|---|---|---|
| May 5, 2024 | Decoding UTF8 with parallel extract by g0xA52A2A | 111 | 20 |