News for hackers. Stuff that matters.
Re:tolower() in bulk at speed by adrian_b on Tuesday June 28, 2022 @04:06AM (#31905326)
That is possible in better SIMD instruction sets, like Intel/AMD AVX-512 or Armv9 SVE2.

In such instruction sets not only load and store but also most of the other instructions can operate on a subset of bytes/words/dwords/qwords of the registers, by using bit masks to specify which parts of a vector register are used in an operation.

It is possible to specify whether the unused parts should retain their previous value or they should be set to zero.

Moreover, for load and store, it is possible to load or store some number of bytes or of larger data from non-sequential locations, using the so-called gather and scatter instructions.

There are no comments on this comment yet.