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

◆ withinOneUlp()

bool autoresearch::ieee754_check::withinOneUlp ( fl::u32 actual,
fl::u32 expected )
inline

Definition at line 79 of file AutoResearchIeee754.h.

79 {
80 if (actual == expected) {
81 return true;
82 }
83 if ((actual & 0x80000000u) != (expected & 0x80000000u)) {
84 return false;
85 }
86 return absDiff(actual, expected) <= 1u;
87}
fl::u32 absDiff(fl::u32 a, fl::u32 b) FL_NO_EXCEPT

References absDiff(), FL_NO_EXCEPT, and withinOneUlp().

Referenced by run(), and withinOneUlp().

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