Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

>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



Oh I forgot about that!! But ye LUTs are very interesting and fascinating :) One of the hidden gems of CPU optimizations :)




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: