1 /*=============================================================================
2     Copyright (c) 2001-2014 Joel de Guzman
3     Copyright (c) 2001-2011 Hartmut Kaiser
4     http://spirit.sourceforge.net/
5 
6     Distributed under the Boost Software License, Version 1.0. (See accompanying
7     file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
8 =============================================================================*/
9 #if !defined(BOOST_SPIRIT_X3_SIGN_MAR_11_2009_0734PM)
10 #define BOOST_SPIRIT_X3_SIGN_MAR_11_2009_0734PM
11 
12 #include <boost/math/special_functions/sign.hpp>
13 
14 namespace boost { namespace spirit { namespace x3
15 {
16     template<typename T>
17     inline bool (signbit)(T x)
18     {
19         return (boost::math::signbit)(x) ? true : false;
20     }
21 
22     template<typename T>
T(changesign)23     inline T (changesign)(T x)
24     {
25         return (boost::math::changesign)(x);
26     }
27 
28 }}}
29 
30 #endif
31