summaryrefslogtreecommitdiff
path: root/boost/libs/math/config/has_128bit_floatmax_t.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'boost/libs/math/config/has_128bit_floatmax_t.cpp')
-rw-r--r--boost/libs/math/config/has_128bit_floatmax_t.cpp19
1 files changed, 19 insertions, 0 deletions
diff --git a/boost/libs/math/config/has_128bit_floatmax_t.cpp b/boost/libs/math/config/has_128bit_floatmax_t.cpp
new file mode 100644
index 00000000..aee4837c
--- /dev/null
+++ b/boost/libs/math/config/has_128bit_floatmax_t.cpp
@@ -0,0 +1,19 @@
+// Copyright John Maddock 2014.
+// 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)
+
+#include <boost/cstdfloat.hpp>
+#include <boost/static_assert.hpp>
+
+#ifndef BOOST_FLOAT128_C
+#error "There is no 128 bit floating point type"
+#endif
+
+BOOST_STATIC_ASSERT(sizeof(boost::floatmax_t) * CHAR_BIT == 128);
+
+int main()
+{
+ return 0;
+}
+