boost_has_float128.ipp 633 B

1234567891011121314151617181920212223242526272829
  1. // (C) Copyright John Maddock 2012.
  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. // See http://www.boost.org/libs/config for most recent version.
  6. // MACRO: BOOST_HAS_FLOAT128
  7. // TITLE: __float128
  8. // DESCRIPTION: The platform supports __float128.
  9. #include <cstdlib>
  10. namespace boost_has_float128{
  11. int test()
  12. {
  13. #ifdef __GNUC__
  14. __extension__ __float128 big_float = 0.0Q;
  15. #else
  16. __float128 big_float = 0.0Q;
  17. #endif
  18. (void)&big_float;
  19. return 0;
  20. }
  21. }