44 f >= 1.0f ? 0xFFFFFFFFU :
45 static_cast<u32>(f * 4294967296.0f)) {}
51 template <
typename OtherFP>
52 constexpr u0x32(
const OtherFP& other,
78 return static_cast<float>(
mValue) / 4294967296.0f;
101 (
static_cast<u64>(
mValue) * b.mValue) >> 32));
108 if (b.mValue == 0)
return from_raw(0xFFFFFFFFU);
126 return (
static_cast<u64>(
mValue) * scalar > 0xFFFFFFFFULL)
142 return from_raw(a.mValue < b.mValue ? a.mValue : b.mValue);
146 return from_raw(a.mValue > b.mValue ? a.mValue : b.mValue);
150 return max(low,
min(val, high));
FASTLED_FORCE_INLINE u0x32 operator/(u0x32 b) const FL_NOEXCEPT
static constexpr int INT_BITS
constexpr bool operator!=(u0x32 b) const FL_NOEXCEPT
constexpr u0x32() FL_NOEXCEPT=default
constexpr u0x32(u32 raw, RawTag) FL_NOEXCEPT
constexpr FASTLED_FORCE_INLINE u0x32 operator/(u32 scalar) const FL_NOEXCEPT
constexpr FASTLED_FORCE_INLINE u0x32 operator*(u0x32 b) const FL_NOEXCEPT
constexpr float to_float() const FL_NOEXCEPT
constexpr u0x32(const OtherFP &other, typename fl::enable_if<(OtherFP::INT_BITS<=INT_BITS) &&(OtherFP::FRAC_BITS<=FRAC_BITS) &&(OtherFP::INT_BITS !=INT_BITS||OtherFP::FRAC_BITS !=FRAC_BITS), int >::type=0) FL_NOEXCEPT
static constexpr FASTLED_FORCE_INLINE u0x32 clamp(u0x32 val, u0x32 low, u0x32 high) FL_NOEXCEPT
constexpr FASTLED_FORCE_INLINE u0x32 operator<<(int shift) const FL_NOEXCEPT
constexpr bool operator==(u0x32 b) const FL_NOEXCEPT
constexpr u32 raw() const FL_NOEXCEPT
static constexpr int FRAC_BITS
FASTLED_FORCE_INLINE u0x32 operator+(u0x32 b) const FL_NOEXCEPT
constexpr bool operator<=(u0x32 b) const FL_NOEXCEPT
constexpr u32 to_int() const FL_NOEXCEPT
constexpr bool operator>=(u0x32 b) const FL_NOEXCEPT
FASTLED_FORCE_INLINE u0x32 operator-(u0x32 b) const FL_NOEXCEPT
friend constexpr u0x32 operator*(u32 scalar, u0x32 a) FL_NOEXCEPT
static constexpr FASTLED_FORCE_INLINE u0x32 from_raw(u32 raw) FL_NOEXCEPT
static constexpr FASTLED_FORCE_INLINE u0x32 min(u0x32 a, u0x32 b) FL_NOEXCEPT
constexpr FASTLED_FORCE_INLINE u0x32 operator*(u32 scalar) const FL_NOEXCEPT
static constexpr FASTLED_FORCE_INLINE u0x32 max(u0x32 a, u0x32 b) FL_NOEXCEPT
constexpr bool operator>(u0x32 b) const FL_NOEXCEPT
constexpr bool operator<(u0x32 b) const FL_NOEXCEPT
constexpr FASTLED_FORCE_INLINE u0x32 operator>>(int shift) const FL_NOEXCEPT
#define constexpr
Declares that it is possible to evaluate a value at compile time, introduced in C++11.
expected< T, E > result
Alias for expected (Rust-style naming)
Base definition for an LED controller.
#define FL_OPTIMIZATION_LEVEL_O3_BEGIN
#define FASTLED_FORCE_INLINE
#define FL_OPTIMIZATION_LEVEL_O3_END