3 ms·
Anyone know an efficient way of zipping/interleaving two bitmasks on Intel? Assume both bitmasks are in their own mask registers, and the top halves and bottom
by anonymousDan 3y ago
Anyone know an efficient way of zipping/interleaving two bitmasks on Intel? Assume both bitmasks are in their own mask registers, and the top halves and bottom halves can be zipped into separate output registers. My current solution uses the pdep instruction.
- m1el 3y agohttps://gist.github.com/m1el/e16fc153076d5764c95835de2936afef https://gist.github.com/m1el/e16fc153076d5764c95835de2936afe... Here's my solution, which also uses pdep/pext