1
0
Fork 0
mirror of https://github.com/bolero-MURAKAMI/Sprout synced 2024-11-12 21:09:01 +00:00
Sprout/sprout/math/detail/config.hpp

30 lines
940 B
C++
Raw Normal View History

2013-08-08 09:54:33 +00:00
/*=============================================================================
2014-01-08 07:48:12 +00:00
Copyright (c) 2011-2014 Bolero MURAKAMI
2013-08-08 09:54:33 +00:00
https://github.com/bolero-MURAKAMI/Sprout
Distributed under 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)
=============================================================================*/
2012-06-23 04:22:50 +00:00
#ifndef SPROUT_MATH_DETAIL_CONFIG_HPP
#define SPROUT_MATH_DETAIL_CONFIG_HPP
2013-02-10 02:54:54 +00:00
#include <cfloat>
2012-06-23 04:22:50 +00:00
#include <sprout/config.hpp>
#if SPROUT_USE_BUILTIN_CMATH_FUNCTION
# include <cmath>
#endif
2013-02-10 02:54:54 +00:00
#if (FLT_RADIX == 2)
# define SPROUT_FLT_RADIX_IS_2 1
#else
# define SPROUT_FLT_RADIX_IS_2 0
#endif
2013-01-13 08:41:45 +00:00
#if SPROUT_NOERROR_LARGE_FLOAT_ROUNDING
# define SPROUT_MATH_THROW_LARGE_FLOAT_ROUNDING(e, x) (x)
2012-12-02 08:06:37 +00:00
#else
2013-01-13 08:41:45 +00:00
# define SPROUT_MATH_THROW_LARGE_FLOAT_ROUNDING(e, x) throw (e)
2012-12-02 08:06:37 +00:00
#endif
2012-06-23 04:22:50 +00:00
#endif // #ifndef SPROUT_MATH_DETAIL_CONFIG_HPP