We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0783571 commit b2cb305Copy full SHA for b2cb305
cpp/src/arrow/testing/math.cc
@@ -27,6 +27,9 @@
27
namespace arrow {
28
namespace {
29
30
+// `kOneUlp` is equal to 1.0 - (1.0 - nextafter(1.0, -inf)).
31
+// That is, it is the delta between 1.0 and the FP value immediately before 1.0.
32
+// We're using this value because `frexp` returns a mantissa between 0.5 and 1.0.
33
template <typename Float>
34
constexpr Float kOneUlp;
35
template <>
0 commit comments