summaryrefslogtreecommitdiffstats
path: root/src/boost/libs/config/test/boost_has_float128.ipp
diff options
context:
space:
mode:
Diffstat (limited to 'src/boost/libs/config/test/boost_has_float128.ipp')
-rw-r--r--src/boost/libs/config/test/boost_has_float128.ipp29
1 files changed, 29 insertions, 0 deletions
diff --git a/src/boost/libs/config/test/boost_has_float128.ipp b/src/boost/libs/config/test/boost_has_float128.ipp
new file mode 100644
index 000000000..80b211c14
--- /dev/null
+++ b/src/boost/libs/config/test/boost_has_float128.ipp
@@ -0,0 +1,29 @@
+// (C) Copyright John Maddock 2012.
+// Use, modification and distribution are subject to the
+// Boost Software License, Version 1.0. (See accompanying file
+// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
+
+// See http://www.boost.org/libs/config for most recent version.
+
+// MACRO: BOOST_HAS_FLOAT128
+// TITLE: __float128
+// DESCRIPTION: The platform supports __float128.
+
+#include <cstdlib>
+
+
+namespace boost_has_float128{
+
+int test()
+{
+#ifdef __GNUC__
+ __extension__ __float128 big_float = 0.0Q;
+#else
+ __float128 big_float = 0.0Q;
+#endif
+ (void)&big_float;
+ return 0;
+}
+
+}
+