FastLED 3.10.6
Loading...
Searching...
No Matches
types_impl.h
Go to the documentation of this file.
1#pragma once
2
3// FastLED #3022: the IEEE-754 bit-codec primitives that used to live here
4// have moved to `fl/math/soft_float.h` so non-JSON callers can use them
5// too. This file is now a thin shim that exposes the old `json_*` names
6// (still referenced by the existing forward declarations in `types.h`)
7// while delegating to the new home.
8
10
11namespace fl {
12namespace detail {
13
17
21
23 u32 sign, u64 magnitude, int binary_exp) FL_NO_EXCEPT {
24 return fl::detail::soft_float_bits_from_scaled_u64(sign, magnitude, binary_exp);
25}
26
30
34
35template <typename To, typename From>
39
43
47
48} // namespace detail
49} // namespace fl
int soft_floor_log2_u64(u64 value) FL_NO_EXCEPT
Definition soft_float.h:73
u32 json_round_shift_right_u64(u64 value, int shift) FL_NO_EXCEPT
Definition types_impl.h:14
u32 soft_float_bits_from_scaled_u64(u32 sign, u64 magnitude, int binary_exp) FL_NO_EXCEPT
Definition soft_float.h:82
u32 soft_round_shift_right_u64(u64 value, int shift) FL_NO_EXCEPT
Definition soft_float.h:58
To soft_bit_copy(const From &value) FL_NO_EXCEPT
Definition soft_float.h:47
To json_bit_copy(const From &value) FL_NO_EXCEPT
Definition types_impl.h:36
int json_floor_log2_u64(u64 value) FL_NO_EXCEPT
Definition types_impl.h:18
u32 json_ieee754_float_bits_from_double_bits(u64 bits) FL_NO_EXCEPT
Definition types_impl.h:27
u32 json_ieee754_float_bits_from_scaled_u64(u32 sign, u64 magnitude, int binary_exp) FL_NO_EXCEPT
Definition types_impl.h:22
u64 json_ieee754_double_bits_from_float_bits(u32 bits) FL_NO_EXCEPT
Definition types_impl.h:31
float json_double_to_float(double value) FL_NO_EXCEPT
Definition types_impl.h:40
double json_float_to_double(float value) FL_NO_EXCEPT
Definition types_impl.h:44
Compile-time linker keep-alive hook for a single fl::Bus.
Definition bus_info.h:57
constexpr int type_rank< T >::value
double soft_float_to_double(float value) FL_NO_EXCEPT
Definition soft_float.h:192
u32 soft_float_bits_from_double_bits(u64 bits) FL_NO_EXCEPT
Definition soft_float.h:132
u64 soft_double_bits_from_float_bits(u32 bits) FL_NO_EXCEPT
Definition soft_float.h:152
InputGamut g FL_NO_EXCEPT
Definition rgbw.h:121
float soft_double_to_float(double value) FL_NO_EXCEPT
Definition soft_float.h:182
constexpr enable_if< is_fixed_point< T >::value, int >::type sign(T x) FL_NO_EXCEPT
Base definition for an LED controller.
Definition crgb.hpp:179
fl::u64 u64
Definition stdint.h:220