• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
6//  See http://www.boost.org/libs/config for most recent version.
7
8//  MACRO:         BOOST_HAS_FLOAT128
9//  TITLE:         __float128
10//  DESCRIPTION:   The platform supports __float128.
11
12#include <cstdlib>
13
14
15namespace boost_has_float128{
16
17int test()
18{
19#ifdef __GNUC__
20   __extension__ __float128 big_float = 0.0Q;
21#else
22   __float128 big_float = 0.0Q;
23#endif
24   (void)&big_float;
25
26   __float128 i(2.00), j(1.00), k;
27   k = i / j;
28
29   return 0;
30}
31
32}
33
34