Add BOOST_HAS_FLOAT128 for compilers that support __float128 as a distinct type.

This commit is contained in:
jzmaddock
2015-08-13 17:13:32 +01:00
parent a8f96e4b6e
commit 15fa6fd8b9
9 changed files with 62 additions and 5 deletions
+13
View File
@@ -143,6 +143,19 @@
#if defined(__SIZEOF_INT128__) && !defined(__CUDACC__)
# define BOOST_HAS_INT128
#endif
//
// Recent GCC versions have a __float128 native type, we need to
// include a std lib header to detect this - not ideal, but we'll
// be including <cstddef> later anyway when we select the std lib.
//
#ifdef __cplusplus
#include <cstddef>
#else
#include <stddef.h>
#endif
#if defined(_GLIBCXX_USE_FLOAT128) && !defined(__STRICT_ANSI__)
# define BOOST_HAS_FLOAT128
#endif
// C++0x features in 4.3.n and later
//