MCPcopy Create free account
hub / github.com/deathkiller/jazz2-native / integerToDouble

Function integerToDouble

Sources/Dependencies/jsoncpp/value.cpp:88–91  ·  view source on GitHub ↗

if !defined(JSON_USE_INT64_DOUBLE_CONVERSION)

Source from the content-addressed store, hash-verified

86 }
87#else // if !defined(JSON_USE_INT64_DOUBLE_CONVERSION)
88 static inline double integerToDouble(Json::UInt64 value) {
89 return static_cast<double>(Int64(value / 2)) * 2.0 +
90 static_cast<double>(Int64(value & 1));
91 }
92
93 template <typename T> static inline double integerToDouble(T value) {
94 return static_cast<double>(value);

Callers 4

InRangeFunction · 0.85
getMethod · 0.85
asDoubleMethod · 0.85
asFloatMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected