MCPcopy Create free account
hub / github.com/apache/orc / doubleEquals

Function doubleEquals

c++/test/TestDictionaryEncoding.cc:38–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36 const double FALLBACK_THRESHOLD = 0.0; // make sure fallback happens
37
38 static bool doubleEquals(double a, double b) {
39 const double EPSILON = 1e-9;
40 return std::fabs(a - b) < EPSILON;
41 }
42
43 static std::unique_ptr<Reader> createReader(MemoryPool* memoryPool,
44 std::unique_ptr<InputStream> stream) {

Callers 4

testStringDictionaryFunction · 0.85
testVarcharDictionaryFunction · 0.85
testCharDictionaryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected