Imported Upstream version 1.72.0
[platform/upstream/boost.git] / libs / multiprecision / config / has_float128.cpp
1 //  Copyright John Maddock 2013.
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 #include <boost/config.hpp>
7
8 #ifndef BOOST_HAS_FLOAT128
9 #error "This doesn't work unless Boost.Config enables __float128 support"
10 #endif
11
12 extern "C" {
13 #include <quadmath.h>
14 }
15
16 int main()
17 {
18    __float128 f = -2.0Q;
19    f            = fabsq(f);
20    f            = expq(f);
21
22    return 0;
23 }