mirror of
https://github.com/boostorg/json.git
synced 2026-02-13 00:22:21 +00:00
doc work
This commit is contained in:
@@ -15,11 +15,10 @@
|
||||
// is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
// KIND, either express or implied.
|
||||
|
||||
#include <assert.h>
|
||||
#include <math.h>
|
||||
#include <stdint.h>
|
||||
|
||||
#include <boost/json/detail/ryu/ryu.hpp>
|
||||
#include <boost/json/detail/assert.hpp>
|
||||
#include <cmath>
|
||||
#include <cstdint>
|
||||
#include "gtest.hpp"
|
||||
|
||||
namespace boost {
|
||||
@@ -35634,8 +35633,8 @@ static double int64Bits2Double(uint64_t bits) {
|
||||
}
|
||||
|
||||
static double ieeeParts2Double(const bool sign, const uint32_t ieeeExponent, const uint64_t ieeeMantissa) {
|
||||
BOOST_ASSERT(ieeeExponent <= 2047);
|
||||
BOOST_ASSERT(ieeeMantissa <= ((std::uint64_t)1 << 53) - 1);
|
||||
BOOST_JSON_ASSERT(ieeeExponent <= 2047);
|
||||
BOOST_JSON_ASSERT(ieeeMantissa <= ((std::uint64_t)1 << 53) - 1);
|
||||
return int64Bits2Double(((std::uint64_t)sign << 63) | ((std::uint64_t)ieeeExponent << 52) | ieeeMantissa);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user