FastLED 3.9.15
Loading...
Searching...
No Matches

◆ SWAPSB

#define SWAPSB ( X,
N )
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
Xthe sub4 of out to set
Nthe bit of each byte to retrieve
See also
bitswap_type

Definition at line 91 of file bitswap.h.

91#define SWAPSB(X,N) out. X ## 0 = in.b.a ## N; \
92 out. X ## 1 = in.b.b ## N; \
93 out. X ## 2 = in.b.c ## N; \
94 out. X ## 3 = in.b.d ## N;