FastLED 3.9.15
Loading...
Searching...
No Matches
fl::s24x8 Class Reference

Detailed Description

Definition at line 19 of file s24x8.h.

#include <s24x8.h>

Classes

struct  RawTag
 

Public Member Functions

constexpr s24x8 () FL_NOEXCEPT=default
 
template<typename OtherFP>
constexpr s24x8 (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
 
constexpr s24x8 (float f) FL_NOEXCEPT
 
constexpr s24x8 (i32 raw, RawTag) FL_NOEXCEPT
 
template<typename IntT, detail::enable_if_integer_t< IntT > = 0>
constexpr s24x8 (IntT n) FL_NOEXCEPT
 
constexpr FASTLED_FORCE_INLINE s24x8 abs () const FL_NOEXCEPT
 
FASTLED_FORCE_INLINE s24x8 acos () const FL_NOEXCEPT
 
FASTLED_FORCE_INLINE s24x8 asin () const FL_NOEXCEPT
 
FASTLED_FORCE_INLINE s24x8 atan () const FL_NOEXCEPT
 
constexpr FASTLED_FORCE_INLINE s24x8 ceil () const FL_NOEXCEPT
 
FASTLED_FORCE_INLINE s24x8 cos () const FL_NOEXCEPT
 
constexpr FASTLED_FORCE_INLINE s24x8 floor () const FL_NOEXCEPT
 
constexpr FASTLED_FORCE_INLINE s24x8 fract () const FL_NOEXCEPT
 
constexpr bool operator!= (s24x8 b) const FL_NOEXCEPT
 
constexpr FASTLED_FORCE_INLINE s24x8 operator* (i32 scalar) const FL_NOEXCEPT
 
constexpr FASTLED_FORCE_INLINE s24x8 operator* (s24x8 b) const FL_NOEXCEPT
 
constexpr FASTLED_FORCE_INLINE s24x8 operator+ (s24x8 b) const FL_NOEXCEPT
 
constexpr FASTLED_FORCE_INLINE s24x8 operator- () const FL_NOEXCEPT
 
constexpr FASTLED_FORCE_INLINE s24x8 operator- (s24x8 b) const FL_NOEXCEPT
 
constexpr FASTLED_FORCE_INLINE s24x8 operator/ (s24x8 b) const FL_NOEXCEPT
 
constexpr bool operator< (s24x8 b) const FL_NOEXCEPT
 
constexpr bool operator<= (s24x8 b) const FL_NOEXCEPT
 
constexpr bool operator== (s24x8 b) const FL_NOEXCEPT
 
constexpr bool operator> (s24x8 b) const FL_NOEXCEPT
 
constexpr bool operator>= (s24x8 b) const FL_NOEXCEPT
 
constexpr FASTLED_FORCE_INLINE s24x8 operator>> (int shift) const FL_NOEXCEPT
 
constexpr i32 raw () const FL_NOEXCEPT
 
constexpr FASTLED_FORCE_INLINE s24x8 rsqrt () const FL_NOEXCEPT
 
constexpr FASTLED_FORCE_INLINE int sign () const FL_NOEXCEPT
 
FASTLED_FORCE_INLINE s24x8 sin () const FL_NOEXCEPT
 
constexpr FASTLED_FORCE_INLINE s24x8 sqrt () const FL_NOEXCEPT
 
constexpr float to_float () const FL_NOEXCEPT
 
constexpr i32 to_int () const FL_NOEXCEPT
 

Static Public Member Functions

static constexpr FASTLED_FORCE_INLINE s24x8 abs (s24x8 x) FL_NOEXCEPT
 
static FASTLED_FORCE_INLINE s24x8 acos (s24x8 x) FL_NOEXCEPT
 
static FASTLED_FORCE_INLINE s24x8 asin (s24x8 x) FL_NOEXCEPT
 
static FASTLED_FORCE_INLINE s24x8 atan (s24x8 x) FL_NOEXCEPT
 
static FASTLED_FORCE_INLINE s24x8 atan2 (s24x8 y, s24x8 x) FL_NOEXCEPT
 
static constexpr FASTLED_FORCE_INLINE s24x8 ceil (s24x8 x) FL_NOEXCEPT
 
static constexpr FASTLED_FORCE_INLINE s24x8 clamp (s24x8 x, s24x8 lo, s24x8 hi) FL_NOEXCEPT
 
static FASTLED_FORCE_INLINE s24x8 cos (s24x8 angle) FL_NOEXCEPT
 
static constexpr FASTLED_FORCE_INLINE s24x8 floor (s24x8 x) FL_NOEXCEPT
 
static constexpr FASTLED_FORCE_INLINE s24x8 fract (s24x8 x) FL_NOEXCEPT
 
static constexpr FASTLED_FORCE_INLINE s24x8 from_raw (i32 raw) FL_NOEXCEPT
 
static constexpr FASTLED_FORCE_INLINE s24x8 lerp (s24x8 a, s24x8 b, s24x8 t) FL_NOEXCEPT
 
static constexpr FASTLED_FORCE_INLINE s24x8 mod (s24x8 a, s24x8 b) FL_NOEXCEPT
 
static FASTLED_FORCE_INLINE s24x8 pow (s24x8 base, s24x8 exp) FL_NOEXCEPT
 
static constexpr FASTLED_FORCE_INLINE s24x8 rsqrt (s24x8 x) FL_NOEXCEPT
 
static constexpr FASTLED_FORCE_INLINE int sign (s24x8 x) FL_NOEXCEPT
 
static FASTLED_FORCE_INLINE s24x8 sin (s24x8 angle) FL_NOEXCEPT
 
static FASTLED_FORCE_INLINE void sincos (s24x8 angle, s24x8 &out_sin, s24x8 &out_cos) FL_NOEXCEPT
 
static FASTLED_FORCE_INLINE s24x8 smoothstep (s24x8 edge0, s24x8 edge1, s24x8 x) FL_NOEXCEPT
 
static constexpr FASTLED_FORCE_INLINE s24x8 sqrt (s24x8 x) FL_NOEXCEPT
 
static constexpr FASTLED_FORCE_INLINE s24x8 step (s24x8 edge, s24x8 x) FL_NOEXCEPT
 

Static Public Attributes

static constexpr int FRAC_BITS = 8
 
static constexpr int INT_BITS = 24
 
static constexpr i32 SCALE = static_cast<i32>(1) << FRAC_BITS
 

Static Private Member Functions

static constexpr int _highest_bit_step (u32 v, int r) FL_NOEXCEPT
 
static constexpr FASTLED_FORCE_INLINE u32 angle_to_a24 (s24x8 angle) FL_NOEXCEPT
 
static FASTLED_FORCE_INLINE s24x8 atan_unit (s24x8 t) FL_NOEXCEPT
 
static FASTLED_FORCE_INLINE s24x8 exp2_fp (s24x8 x) FL_NOEXCEPT
 
static constexpr FASTLED_FORCE_INLINE int highest_bit (u32 v) FL_NOEXCEPT
 
static FASTLED_FORCE_INLINE s24x8 log2_fp (s24x8 x) FL_NOEXCEPT
 

Private Attributes

i32 mValue = 0
 

Static Private Attributes

static constexpr i32 RAD_TO_24 = 2670177
 

Friends

constexpr s24x8 operator* (i32 scalar, s24x8 fp) FL_NOEXCEPT
 

The documentation for this class was generated from the following file: