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

Detailed Description

Definition at line 19 of file s8x24.h.

#include <s8x24.h>

Classes

struct  RawTag
 

Public Member Functions

constexpr s8x24 () FL_NOEXCEPT=default
 
template<typename OtherFP>
constexpr s8x24 (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 s8x24 (float f) FL_NOEXCEPT
 
constexpr s8x24 (i32 raw, RawTag) FL_NOEXCEPT
 
template<typename IntT, detail::enable_if_integer_t< IntT > = 0>
constexpr s8x24 (IntT n) FL_NOEXCEPT
 
constexpr FASTLED_FORCE_INLINE s8x24 abs () const FL_NOEXCEPT
 
FASTLED_FORCE_INLINE s8x24 acos () const FL_NOEXCEPT
 
FASTLED_FORCE_INLINE s8x24 asin () const FL_NOEXCEPT
 
FASTLED_FORCE_INLINE s8x24 atan () const FL_NOEXCEPT
 
constexpr FASTLED_FORCE_INLINE s8x24 ceil () const FL_NOEXCEPT
 
FASTLED_FORCE_INLINE s8x24 cos () const FL_NOEXCEPT
 
constexpr FASTLED_FORCE_INLINE s8x24 floor () const FL_NOEXCEPT
 
constexpr FASTLED_FORCE_INLINE s8x24 fract () const FL_NOEXCEPT
 
constexpr bool operator!= (s8x24 b) const FL_NOEXCEPT
 
constexpr FASTLED_FORCE_INLINE s8x24 operator* (i32 scalar) const FL_NOEXCEPT
 
constexpr FASTLED_FORCE_INLINE s8x24 operator* (s8x24 b) const FL_NOEXCEPT
 
constexpr FASTLED_FORCE_INLINE s8x24 operator+ (s8x24 b) const FL_NOEXCEPT
 
constexpr FASTLED_FORCE_INLINE s8x24 operator- () const FL_NOEXCEPT
 
constexpr FASTLED_FORCE_INLINE s8x24 operator- (s8x24 b) const FL_NOEXCEPT
 
constexpr FASTLED_FORCE_INLINE s8x24 operator/ (s8x24 b) const FL_NOEXCEPT
 
constexpr bool operator< (s8x24 b) const FL_NOEXCEPT
 
constexpr bool operator<= (s8x24 b) const FL_NOEXCEPT
 
constexpr bool operator== (s8x24 b) const FL_NOEXCEPT
 
constexpr bool operator> (s8x24 b) const FL_NOEXCEPT
 
constexpr bool operator>= (s8x24 b) const FL_NOEXCEPT
 
constexpr FASTLED_FORCE_INLINE s8x24 operator>> (int shift) const FL_NOEXCEPT
 
constexpr i32 raw () const FL_NOEXCEPT
 
constexpr FASTLED_FORCE_INLINE s8x24 rsqrt () const FL_NOEXCEPT
 
constexpr FASTLED_FORCE_INLINE int sign () const FL_NOEXCEPT
 
FASTLED_FORCE_INLINE s8x24 sin () const FL_NOEXCEPT
 
constexpr FASTLED_FORCE_INLINE s8x24 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 s8x24 abs (s8x24 x) FL_NOEXCEPT
 
static FASTLED_FORCE_INLINE s8x24 acos (s8x24 x) FL_NOEXCEPT
 
static FASTLED_FORCE_INLINE s8x24 asin (s8x24 x) FL_NOEXCEPT
 
static FASTLED_FORCE_INLINE s8x24 atan (s8x24 x) FL_NOEXCEPT
 
static FASTLED_FORCE_INLINE s8x24 atan2 (s8x24 y, s8x24 x) FL_NOEXCEPT
 
static constexpr FASTLED_FORCE_INLINE s8x24 ceil (s8x24 x) FL_NOEXCEPT
 
static constexpr FASTLED_FORCE_INLINE s8x24 clamp (s8x24 x, s8x24 lo, s8x24 hi) FL_NOEXCEPT
 
static FASTLED_FORCE_INLINE s8x24 cos (s8x24 angle) FL_NOEXCEPT
 
static constexpr FASTLED_FORCE_INLINE s8x24 floor (s8x24 x) FL_NOEXCEPT
 
static constexpr FASTLED_FORCE_INLINE s8x24 fract (s8x24 x) FL_NOEXCEPT
 
static constexpr FASTLED_FORCE_INLINE s8x24 from_raw (i32 raw) FL_NOEXCEPT
 
static constexpr FASTLED_FORCE_INLINE s8x24 lerp (s8x24 a, s8x24 b, s8x24 t) FL_NOEXCEPT
 
static constexpr FASTLED_FORCE_INLINE s8x24 mod (s8x24 a, s8x24 b) FL_NOEXCEPT
 
static FASTLED_FORCE_INLINE s8x24 pow (s8x24 base, s8x24 exp) FL_NOEXCEPT
 
static constexpr FASTLED_FORCE_INLINE s8x24 rsqrt (s8x24 x) FL_NOEXCEPT
 
static constexpr FASTLED_FORCE_INLINE int sign (s8x24 x) FL_NOEXCEPT
 
static FASTLED_FORCE_INLINE s8x24 sin (s8x24 angle) FL_NOEXCEPT
 
static FASTLED_FORCE_INLINE void sincos (s8x24 angle, s8x24 &out_sin, s8x24 &out_cos) FL_NOEXCEPT
 
static FASTLED_FORCE_INLINE s8x24 smoothstep (s8x24 edge0, s8x24 edge1, s8x24 x) FL_NOEXCEPT
 
static constexpr FASTLED_FORCE_INLINE s8x24 sqrt (s8x24 x) FL_NOEXCEPT
 
static constexpr FASTLED_FORCE_INLINE s8x24 step (s8x24 edge, s8x24 x) FL_NOEXCEPT
 

Static Public Attributes

static constexpr int FRAC_BITS = 24
 
static constexpr int INT_BITS = 8
 
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 (s8x24 angle) FL_NOEXCEPT
 
static FASTLED_FORCE_INLINE s8x24 atan_unit (s8x24 t) FL_NOEXCEPT
 
static FASTLED_FORCE_INLINE s8x24 exp2_fp (s8x24 x) FL_NOEXCEPT
 
static constexpr FASTLED_FORCE_INLINE int highest_bit (u32 v) FL_NOEXCEPT
 
static FASTLED_FORCE_INLINE s8x24 log2_fp (s8x24 x) FL_NOEXCEPT
 

Private Attributes

i32 mValue = 0
 

Static Private Attributes

static constexpr i32 RAD_TO_24 = 2670177
 

Friends

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

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