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

Detailed Description

Definition at line 19 of file s16x16.h.

#include <s16x16.h>

Classes

struct  RawTag
 

Public Member Functions

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

Static Public Attributes

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

Private Attributes

i32 mValue = 0
 

Static Private Attributes

static constexpr i32 RAD_TO_24 = 2670177
 

Friends

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

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