CodePointLength now delegates to _Utf8CountCodePoints in hand-written x86_64 assembly. Processes 32 bytes/iteration with AVX2 (runtime- detected via CPUID) and 16 bytes/iteration with SSE2, falling back to scalar for tail bytes. The algorithm counts non-continuation bytes (bytes where (b & 0xC0) != 0x80) using signed pcmpgtb against -65. |
||
|---|---|---|
| .. | ||
| src/main/pascal | ||
| project.xml | ||