3 ms·
>I think x86 has like pshufb for LUTs There is also VPERMI2B [0] which operates on a 128 byte LUT. [0] https://en.wikichip.org/wiki/x86/avx512_vbmi https://en
by protomolecule 3y ago
>I think x86 has like pshufb for LUTs
There is also VPERMI2B [0] which operates on a 128 byte LUT.
[0] https://en.wikichip.org/wiki/x86/avx512_vbmi https://en.wikichip.org/wiki/x86/avx512_vbmi
- danielhanchen 3y agoOh I forgot about that!! But ye LUTs are very interesting and fascinating :) One of the hidden gems of CPU optimizations :)