mirror of
https://github.com/nlohmann/json.git
synced 2026-03-10 19:21:26 +00:00
🏗️ adding anonymous namespace
This commit is contained in:
@@ -36,6 +36,8 @@ SOFTWARE.
|
||||
#include <nlohmann/json.hpp>
|
||||
using nlohmann::detail::dtoa_impl::reinterpret_bits;
|
||||
|
||||
namespace
|
||||
{
|
||||
static float make_float(uint32_t sign_bit, uint32_t biased_exponent, uint32_t significand)
|
||||
{
|
||||
assert(sign_bit == 0 || sign_bit == 1);
|
||||
@@ -139,6 +141,7 @@ static double make_double(uint64_t f, int e)
|
||||
uint64_t bits = (f & kSignificandMask) | (biased_exponent << kPhysicalSignificandSize);
|
||||
return reinterpret_bits<double>(bits);
|
||||
}
|
||||
}
|
||||
|
||||
TEST_CASE("digit gen")
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user