Skip to content
Snippets Groups Projects
Commit f5c59a2d authored by Florian Loitsch's avatar Florian Loitsch
Browse files

Merge branch 'master' of github.com:google/double-conversion

parents 8751aafe 990c4470
No related branches found
No related tags found
No related merge requests found
...@@ -529,7 +529,7 @@ static double SignedZero(bool sign) { ...@@ -529,7 +529,7 @@ static double SignedZero(bool sign) {
// because it constant-propagated the radix and concluded that the last // because it constant-propagated the radix and concluded that the last
// condition was always true. By moving it into a separate function the // condition was always true. By moving it into a separate function the
// compiler wouldn't warn anymore. // compiler wouldn't warn anymore.
#if _MSC_VER #ifdef _MSC_VER
#pragma optimize("",off) #pragma optimize("",off)
static bool IsDecimalDigitForRadix(int c, int radix) { static bool IsDecimalDigitForRadix(int c, int radix) {
return '0' <= c && c <= '9' && (c - '0') < radix; return '0' <= c && c <= '9' && (c - '0') < radix;
......
...@@ -94,7 +94,8 @@ int main(int argc, char** argv) { ...@@ -94,7 +94,8 @@ int main(int argc, char** argv) {
defined(_MIPS_ARCH_MIPS32R2) || \ defined(_MIPS_ARCH_MIPS32R2) || \
defined(__AARCH64EL__) || defined(__aarch64__) || defined(__AARCH64EB__) || \ defined(__AARCH64EL__) || defined(__aarch64__) || defined(__AARCH64EB__) || \
defined(__riscv) || \ defined(__riscv) || \
defined(__or1k__) || defined(__arc__) defined(__or1k__) || defined(__arc__) || \
defined(__EMSCRIPTEN__)
#define DOUBLE_CONVERSION_CORRECT_DOUBLE_OPERATIONS 1 #define DOUBLE_CONVERSION_CORRECT_DOUBLE_OPERATIONS 1
#elif defined(__mc68000__) || \ #elif defined(__mc68000__) || \
defined(__pnacl__) || defined(__native_client__) defined(__pnacl__) || defined(__native_client__)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment