assembly - Fast in-register sort of bytes? -
Looking at a register of 4 bytes (or 16 for SIMD), there should be an effective way to sort bytes - see also:
Register with some instructions.
Thanks in advance.
= Number of bytes for a skilled n that you care about (4 or 16). Change the sequence of comparison and exchange instructions. (For N = 16 which would be more than 'some', though.)
Comments
Post a Comment