MCPcopy Create free account
hub / github.com/Samsung/ONE / integerToDouble

Function integerToDouble

runtime/3rdparty/jsoncpp/jsoncpp.cpp:2732–2735  ·  view source on GitHub ↗

if !defined(JSON_USE_INT64_DOUBLE_CONVERSION)

Source from the content-addressed store, hash-verified

2730}
2731#else // if !defined(JSON_USE_INT64_DOUBLE_CONVERSION)
2732static inline double integerToDouble(Json::UInt64 value)
2733{
2734 return static_cast<double>(Int64(value / 2)) * 2.0 + static_cast<double>(Int64(value & 1));
2735}
2736
2737template <typename T> static inline double integerToDouble(T value)
2738{

Callers 3

InRangeFunction · 0.85
asDoubleMethod · 0.85
asFloatMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected