20 static constexpr int64_t extractMagnitude =
21 0b0'11111111111'0000000000000000000000000000000000000000000000000000;
24 bits &= extractMagnitude;
42 static constexpr double ulpFactor = std::numeric_limits<double>::epsilon();
47 const double tolerance = maxMagnitude * (ulpFactor * (maxUlpsDiff + 1));
55 return a == 0 || fabs(
a) < std::numeric_limits<float>::epsilon();
bool sk_double_nearly_zero(double a)
static double magnitude(double a)
bool sk_doubles_nearly_equal_ulps(double a, double b, uint8_t maxUlpsDiff)
static float max(float r, float g, float b)
static float min(float r, float g, float b)
SIN Vec< N, float > abs(const Vec< N, float > &x)