118a93e3a6
Fix Math code to not use lexical_cast for constants for boost::floatmax_t when that type is __float128. Fix constant usage so it doesn't break when the suffix is "Q".
18 lines
335 B
C++
18 lines
335 B
C++
// Copyright John Maddock 2013.
|
|
// 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)
|
|
|
|
extern "C" {
|
|
#include <quadmath.h>
|
|
}
|
|
|
|
int main()
|
|
{
|
|
__float128 f = -2.0Q;
|
|
f = fabsq(f);
|
|
|
|
return 0;
|
|
}
|
|
|