News for hackers. Stuff that matters.
Re:tolower() in bulk at speed by stabbles on Monday June 27, 2022 @06:11PM (#31901535)
It's not the same, libc's tolower takes an int as an individual character
Re:tolower() in bulk at speed by Findecanor on Monday June 27, 2022 @06:19PM (#31901610)
Although ... the existence of a libc with SIMD versions of its functions is not implausible. There are compilers that would produce such functions beside the normal ones if the source is decorated with the right #pragma.

Such functions would be called only from within vectorised loops (or other SIMD versions of functions).

Re:tolower() in bulk at speed by moonchild on Monday June 27, 2022 @09:03PM (#31902913)
Indeed. For instance, glibc's math library has vectorised trig functions, and gcc can generate calls to them if it sees fit. For the rest of us, there is sleef.