diff options
Diffstat (limited to '3rdparty/bx/src/dtoa.cpp')
-rw-r--r-- | 3rdparty/bx/src/dtoa.cpp | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/3rdparty/bx/src/dtoa.cpp b/3rdparty/bx/src/dtoa.cpp index 3c23ea516e1..a36314ed98d 100644 --- a/3rdparty/bx/src/dtoa.cpp +++ b/3rdparty/bx/src/dtoa.cpp @@ -1,9 +1,8 @@ /* - * Copyright 2010-2018 Branimir Karadzic. All rights reserved. - * License: https://github.com/bkaradzic/bx#license-bsd-2-clause + * Copyright 2010-2022 Branimir Karadzic. All rights reserved. + * License: https://github.com/bkaradzic/bx/blob/master/LICENSE */ -#include "bx_p.h" #include <bx/cpu.h> #include <bx/math.h> #include <bx/string.h> @@ -74,8 +73,8 @@ namespace bx DiyFp operator-(const DiyFp& rhs) const { - BX_CHECK(e == rhs.e, ""); - BX_CHECK(f >= rhs.f, ""); + BX_ASSERT(e == rhs.e, ""); + BX_ASSERT(f >= rhs.f, ""); return DiyFp(f - rhs.f, e); } @@ -224,7 +223,7 @@ namespace bx uint32_t index = static_cast<uint32_t>( (k >> 3) + 1); *K = -(-348 + static_cast<int32_t>(index << 3) ); // decimal exponent no need lookup table - BX_CHECK(index < sizeof(s_kCachedPowers_F) / sizeof(s_kCachedPowers_F[0]), ""); + BX_ASSERT(index < sizeof(s_kCachedPowers_F) / sizeof(s_kCachedPowers_F[0]), ""); return DiyFp(s_kCachedPowers_F[index], s_kCachedPowers_E[index]); } @@ -1120,7 +1119,7 @@ namespace bx bool fromString(int32_t* _out, const StringView& _str) { - StringView str = bx::strLTrimSpace(_str); + StringView str = strLTrimSpace(_str); const char* ptr = str.getPtr(); const char* term = str.getTerm(); |