Skip to content

Commit

Permalink
Removed ARDUINOJSON_DOUBLE_IS_64BITS
Browse files Browse the repository at this point in the history
  • Loading branch information
bblanchon committed Jul 8, 2017
1 parent e5147e6 commit f01fd20
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 12 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Expand Up @@ -6,6 +6,8 @@ HEAD

* Removed dependency on `PGM_P` as Particle 0.6.2 doesn't define it (issue #546)
* Fixed warning "dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]"
* Fixed warning "floating constant exceeds range of 'float' [-Woverflow]" (issue #544)
* Removed `ARDUINOJSON_DOUBLE_IS_64BITS` as it became useless.

v5.11.0
-------
Expand Down
10 changes: 0 additions & 10 deletions src/ArduinoJson/Configuration.hpp
Expand Up @@ -148,16 +148,6 @@
#define ARDUINOJSON_NEGATIVE_EXPONENTIATION_THRESHOLD 1e-5
#endif

// how many bits in a double
#ifndef ARDUINOJSON_DOUBLE_IS_64BITS
#if /*GCC*/ (defined(__SIZEOF_DOUBLE__) && __SIZEOF_DOUBLE__ < 8) || \
/*IAR*/ (defined(__DOUBLE__) && __DOUBLE__ < 64)
#define ARDUINOJSON_DOUBLE_IS_64BITS 0
#else
#define ARDUINOJSON_DOUBLE_IS_64BITS 1 // by default support 64-bit
#endif
#endif

#if ARDUINOJSON_USE_LONG_LONG && ARDUINOJSON_USE_INT64
#error ARDUINOJSON_USE_LONG_LONG and ARDUINOJSON_USE_INT64 cannot be set together
#endif
2 changes: 0 additions & 2 deletions src/ArduinoJson/TypeTraits/FloatTraits.hpp
Expand Up @@ -18,7 +18,6 @@ namespace TypeTraits {
template <typename T, size_t = sizeof(T)>
struct FloatTraits {};

#if ARDUINOJSON_DOUBLE_IS_64BITS
template <typename T>
struct FloatTraits<T, 8 /*64bits*/> {
typedef int64_t mantissa_type;
Expand Down Expand Up @@ -81,7 +80,6 @@ struct FloatTraits<T, 8 /*64bits*/> {
return floatBits;
}
};
#endif

template <typename T>
struct FloatTraits<T, 4 /*32bits*/> {
Expand Down

0 comments on commit f01fd20

Please sign in to comment.