MCPcopy Create free account
hub / github.com/WolfireGames/overgrowth / integerToDouble

Function integerToDouble

Source/JSON/jsoncpp.cpp:2233–2235  ·  view source on GitHub ↗

if !defined(JSON_USE_INT64_DOUBLE_CONVERSION)

Source from the content-addressed store, hash-verified

2231}
2232#else // if !defined(JSON_USE_INT64_DOUBLE_CONVERSION)
2233static inline double integerToDouble(Json::UInt64 value) {
2234 return static_cast<double>(Int64(value / 2)) * 2.0 + Int64(value & 1);
2235}
2236
2237template <typename T>
2238static inline double integerToDouble(T value) {

Callers 3

InRangeFunction · 0.70
asDoubleMethod · 0.70
asFloatMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected