]> git.proxmox.com Git - ceph.git/blame - ceph/src/boost/boost/spirit/home/x3/support/numeric_utils/sign.hpp
import new upstream nautilus stable release 14.2.8
[ceph.git] / ceph / src / boost / boost / spirit / home / x3 / support / numeric_utils / sign.hpp
CommitLineData
7c673cae
FG
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=============================================================================*/
11fdf7f2
TL
9#if !defined(BOOST_SPIRIT_X3_SIGN_MAR_11_2009_0734PM)
10#define BOOST_SPIRIT_X3_SIGN_MAR_11_2009_0734PM
7c673cae 11
7c673cae
FG
12#include <boost/math/special_functions/sign.hpp>
13
14namespace 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
7c673cae
FG
22 template<typename T>
23 inline T (changesign)(T x)
24 {
92f5a8d4 25 return (boost::math::changesign)(x);
7c673cae
FG
26 }
27
28}}}
29
30#endif