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

◆ SWAPSA

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

Definition at line 81 of file bitswap.h.

81#define SWAPSA(X,N) out. X ## 0 = in.a.a ## N; \
82 out. X ## 1 = in.a.b ## N; \
83 out. X ## 2 = in.a.c ## N; \
84 out. X ## 3 = in.a.d ## N;