News for hackers. Stuff that matters.
Re:tolower() in bulk at speed by dzaima on Monday June 27, 2022 @07:38PM (#31902357)
Here's an AVX-2 implementation that assumes it can read up to 31 bytes past the end of the input: https://godbolt.org/z/r33h75j5h (yes, that's autogenerated C)

Requires -fno-unroll-loops as otherwise clang gets overly unroll-y; the code is fast enough. Tail is dealt with by blending the originally read value with the new one.

There are no comments on this comment yet.