Go to the documentation of this file.
30 #ifndef GOOGLE_PROTOBUF_STUBS_MATHUTIL_H_
31 #define GOOGLE_PROTOBUF_STUBS_MATHUTIL_H_
49 return fabs(
a -
b) < 32 * FLT_EPSILON;
54 return fabs(
a -
b) < 32 * DBL_EPSILON;
65 return value >
T(0) ? 1 : -1;
91 return x >
T(0) ?
x : -
x;
100 return x >
y ? R(
x) - R(
y) : R(
y) - R(
x);
111 const T fraction,
const T margin);
116 const T fraction,
const T margin) {
132 T relative_margin =
static_cast<T>(fraction *
Max(
Abs(
x),
Abs(
y)));
140 #endif // GOOGLE_PROTOBUF_STUBS_MATHUTIL_H_
const Descriptor::ReservedRange value
static bool WithinFractionOrMargin(const T x, const T y, const T fraction, const T margin)
static bool IsNaN(const Type x)
#define T(upbtypeconst, upbtype, ctype, default_value)
GLboolean GLboolean GLboolean b
bool AlmostEquals(T a, T b)
static T Max(const T x, const T y)
static bool AlmostEquals(T a, T b)
static MathLimits< T >::UnsignedType AbsDiff(const T x, const T y)
GLsizei const GLfloat * value
GLboolean GLboolean GLboolean GLboolean a
libaditof
Author(s):
autogenerated on Wed May 21 2025 02:06:56