2
0
mirror of https://github.com/boostorg/json.git synced 2026-02-13 00:22:21 +00:00
This commit is contained in:
Vinnie Falco
2019-10-21 16:47:20 -07:00
parent cb34821834
commit e73d4886ea
61 changed files with 991 additions and 554 deletions

View File

@@ -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);
}