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

◆ as_signed_payload()

fl::i64 fl::number::as_signed_payload ( ) const
inline

Definition at line 110 of file number.h.

110 {
111 // Sign-extend bit 60 across the upper 3 bits.
112 const fl::u64 p = payload();
113 const fl::u64 sign_bit = p & (fl::u64(1) << 60);
114 return static_cast<fl::i64>(sign_bit ? (p | ~kPayloadMask) : p);
115 }
constexpr fl::u64 payload() const FL_NO_EXCEPT
Definition number.h:104
static constexpr fl::u64 kPayloadMask
Definition number.h:66
fl::i64 i64
Definition s16x16x4.h:222
fl::u64 u64
Definition s16x16x4.h:221

References fl::FL_NO_EXCEPT, kPayloadMask, and payload().

+ Here is the call graph for this function: