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

Detailed Description

Definition at line 19 of file s8x8.h.

#include <s8x8.h>

Classes

struct  RawTag
 

Public Member Functions

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

Static Public Attributes

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

Private Attributes

i16 mValue = 0
 

Static Private Attributes

static constexpr i32 RAD_TO_24 = 2670177
 

Friends

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

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