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

◆ s0x32() [2/4]

fl::s0x32::s0x32 ( float f)
inlineexplicitconstexpr

Definition at line 42 of file s0x32.h.

43 : mValue(f <= -1.0f ? (i32)0x80000000 : // Exactly -1.0
44 f >= 1.0f ? (i32)0x7FFFFFFF : // Max positive (0.9999999995...)
45 static_cast<i32>(f * 2147483648.0f)) {}
i32 mValue
Definition s0x32.h:174

References s0x32(), constexpr, FL_NOEXCEPT, and mValue.

+ Here is the call graph for this function: