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

◆ FORCE_REFERENCE

#define FORCE_REFERENCE ( var)
Value:
asm volatile( "" : : "r" (var) )

Force a variable reference to avoid compiler over-optimization.

Sometimes the compiler will do clever things to reduce code size that result in a net slowdown, if it thinks that a variable is not used in a certain location. This macro does its best to convince the compiler that the variable is used in this location, to help control code motion and de-duplication that would result in a slowdown.

Definition at line 241 of file hsv2rgb.cpp.

Referenced by hsv2rgb_rainbow().