has_128bit_floatmax_t.cpp 470 B

12345678910111213141516171819
  1. // Copyright John Maddock 2014.
  2. // Use, modification and distribution are subject to the
  3. // Boost Software License, Version 1.0. (See accompanying file
  4. // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  5. #include <boost/cstdfloat.hpp>
  6. #include <boost/static_assert.hpp>
  7. #ifndef BOOST_FLOAT128_C
  8. #error "There is no 128 bit floating point type"
  9. #endif
  10. BOOST_STATIC_ASSERT(sizeof(boost::floatmax_t) * CHAR_BIT == 128);
  11. int main()
  12. {
  13. return 0;
  14. }