MCPcopy Create free account
hub / github.com/Kitware/VTK / integerToDouble

Function integerToDouble

ThirdParty/jsoncpp/vtkjsoncpp/jsoncpp.cpp:2531–2534  ·  view source on GitHub ↗

if !defined(JSON_USE_INT64_DOUBLE_CONVERSION)

Source from the content-addressed store, hash-verified

2529}
2530#else // if !defined(JSON_USE_INT64_DOUBLE_CONVERSION)
2531static inline double integerToDouble(Json::UInt64 value) {
2532 return static_cast<double>(Int64(value / 2)) * 2.0 +
2533 static_cast<double>(Int64(value & 1));
2534}
2535
2536template <typename T> static inline double integerToDouble(T value) {
2537 return static_cast<double>(value);

Callers 3

InRangeFunction · 0.85
asDoubleMethod · 0.85
asFloatMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected