Functions for doing a rotation of bits/bytes used by parallel output.
Definition in file bitswap.h.
|
#define | SWAPSA(X, N) |
| Set out.X bits 0, 1, 2, and 3 to bit N of in.a.a , in.a.b , in.a.b , in.a.c , and in.a.d
|
|
#define | SWAPSB(X, N) |
| Set out.X bits 0, 1, 2, and 3 to bit N of in.b.a , in.b.b , in.b.b , in.b.c , and in.b.d
|
|
#define | SWAPS(X, N) |
| Set out.X bits to bit N of both in.a and in.b in order.
|
|
|
void | swapbits8 (bitswap_type in, bitswap_type &out) |
| Do an 8-byte by 8-bit rotation.
|
|
void | slowswap (unsigned char *A, unsigned char *B) |
| Slow version of the 8 byte by 8 bit rotation.
|
|
void | transpose8x1_noinline (unsigned char *A, unsigned char *B) |
| Simplified form of bits rotating function.
|
|
void | transpose8x1 (unsigned char *A, unsigned char *B) |
| Simplified form of bits rotating function.
|
|
void | transpose8x1_MSB (unsigned char *A, unsigned char *B) |
| Simplified form of bits rotating function.
|
|
template<int m, int n> |
void | transpose8 (unsigned char *A, unsigned char *B) |
| Templated bit-rotating function.
|
|
Value: out. X ## 0 = in.a.a ## N; \
out. X ## 1 = in.a.b ## N; \
out. X ## 2 = in.a.c ## N; \
out. X ## 3 = in.a.d ## N;
Set out.X
bits 0, 1, 2, and 3 to bit N of in.a.a
, in.a.b
, in.a.b
, in.a.c
, and in.a.d
- Parameters
-
X | the sub4 of out to set |
N | the bit of each byte to retrieve |
- See also
- bitswap_type
Definition at line 80 of file bitswap.h.
Value: out. X ## 0 = in.b.a ## N; \
out. X ## 1 = in.b.b ## N; \
out. X ## 2 = in.b.c ## N; \
out. X ## 3 = in.b.d ## N;
Set out.X
bits 0, 1, 2, and 3 to bit N of in.b.a
, in.b.b
, in.b.b
, in.b.c
, and in.b.d
- Parameters
-
X | the sub4 of out to set |
N | the bit of each byte to retrieve |
- See also
- bitswap_type
Definition at line 90 of file bitswap.h.