FastLED 3.9.15
Loading...
Searching...
No Matches
types.h
Go to the documentation of this file.
1
3
4#pragma once
5
6#include "fl/stdint.h"
7#include "fl/int.h"
8#include "fl/namespace.h"
9
11
14
19
20
23typedef union {
24 uint32_t i;
25 float f;
26 struct {
27 uint32_t mantissa: 23;
28 uint32_t exponent: 8;
29 uint32_t signbit: 1;
30 };
31 struct {
32 uint32_t mant7 : 7;
33 uint32_t mant16: 16;
34 uint32_t exp_ : 8;
35 uint32_t sb_ : 1;
36 };
37 struct {
38 uint32_t mant_lo8 : 8;
39 uint32_t mant_hi16_exp_lo1 : 16;
40 uint32_t sb_exphi7 : 8;
41 };
43
46
uint32_t mantissa
23-bit mantissa
uint32_t i
raw value, as an integer
Definition types.h:24
float f
raw value, as a float
Definition types.h:25
uint32_t exponent
8-bit exponent
typedef for IEEE754 "binary32" float type internals
Definition types.h:23
#define FASTLED_NAMESPACE_END
Definition namespace.h:23
#define FASTLED_NAMESPACE_BEGIN
Definition namespace.h:22
Implements the FastLED namespace macros.