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

Detailed Description

Definition at line 19 of file s4x12.h.

#include <s4x12.h>

Classes

struct  RawTag
 

Public Member Functions

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

Static Public Member Functions

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

Static Public Attributes

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

Private Attributes

i16 mValue = 0
 

Static Private Attributes

static constexpr i32 RAD_TO_24 = 2670177
 

Friends

constexpr s4x12 operator* (i16 scalar, s4x12 fp) FL_NOEXCEPT
 

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