What is the fastest way to transpose the bits in an 8x8 block on bits?

前端 未结 7 2063
余生分开走
余生分开走 2020-12-05 21:10

I\'m not sure the exact term for what I\'m trying to do. I have an 8x8 block of bits stored in 8 bytes, each byte stores one row. When

7条回答
  •  天命终不由人
    2020-12-05 22:02

    You really want to do something like this with SIMD instructions with something like the GCC vector vector support: http://ds9a.nl/gcc-simd/example.html

提交回复
热议问题