9 ms·
In the interest of achieving the simplest instruction sequence, I've also found (AVX2): key = _pdep_u32(key, 0x03030303); key *= 0x01010101; key >>= 2
by pbsd 13y ago
In the interest of achieving the simplest instruction sequence, I've also found (AVX2):
key = _pdep_u32(key, 0x03030303);
key *= 0x01010101;
key >>= 24;