4 ms·
For SIMD you can use _mm<width>_shuffle_epi8 to swap endianness in a single cycle.
by nightcracker 11y ago
For SIMD you can use _mm<width>_shuffle_epi8 to swap endianness in a single cycle.
- mtklein 11y ago(Just FYI, this only works with SSSE3+, which to be fair is essentially all x86 machines. It's also >1 cycle on mobile x86 chips, which is very frustrating.)