FastLED 3.10.8
Loading...
Searching...
No Matches

◆ radiansToA24()

FASTLED_FORCE_INLINE u32 fl::anonymous_namespace{chasing_spirals.cpp.hpp}::radiansToA24 ( i32 base_s16x16,
i32 offset_s16x16 )

Definition at line 60 of file chasing_spirals.cpp.hpp.

60 {
61 constexpr i32 RAD_TO_A24 = 2670177;
62 return static_cast<u32>((static_cast<i64>(base_s16x16 + offset_s16x16) * RAD_TO_A24) >> FP::FRAC_BITS);
63}
static constexpr int FRAC_BITS
Definition s16x16.h:24
fl::i64 i64
Definition stdint.h:221

References FASTLED_FORCE_INLINE, fl::FL_NO_EXCEPT, fl::s16x16::FRAC_BITS, and radiansToA24().

Referenced by radiansToA24().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: