FastLED 3.10.6
Loading...
Searching...
No Matches

◆ soft_bit_copy()

template<typename To, typename From>
To fl::detail::soft_bit_copy ( const From & value)
inline

Definition at line 47 of file soft_float.h.

47 {
48 To out = 0;
49 const char* src = fl::bit_cast_ptr<const char>(&value);
50 char* dst = fl::bit_cast_ptr<char>(&out);
51 const fl::size n = sizeof(To) < sizeof(From) ? sizeof(To) : sizeof(From);
52 for (fl::size i = 0; i < n; ++i) {
53 dst[i] = src[i];
54 }
55 return out;
56}
constexpr int type_rank< T >::value
To * bit_cast_ptr(void *storage) FL_NO_EXCEPT
Definition bit_cast.h:60

References fl::bit_cast_ptr(), fl::FL_NO_EXCEPT, and fl::type_rank< T >::value.

Referenced by json_bit_copy(), fl::soft_double_to_float(), and fl::soft_float_to_double().

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