Start > Misc. > Code Snippet - Bitinterleaving with SIMD instructions (SSE)

Interleaving Bits with x86 SIMD instructions (SSE)

Overview

Author Dominik Auras
Type C Code Snippets
Direct links

The first snippet requires about 1.24 cycles per output byte, and the 2nd approximately 1.83 cycles (on my Core 2 Duo).

License

This work is licensed under the terms of the GPL.

Compile flags

-msse2 -O2 -mtune=native -march=native  -flax-vector-conversions

Code Snippet 1

Code Snippet 2

Reference Code