News for hackers. Stuff that matters.
Re:Packing a string of digits into an integer quickly by anonymousDan on Sunday July 09, 2023 @02:40AM (#36652191)
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.
Re:Packing a string of digits into an integer quickly by m1el on Sunday July 09, 2023 @05:02AM (#36652879)
https://gist.github.com/m1el/e16fc153076d5764c95835de2936afe...

Here's my solution, which also uses pdep/pext