Sprout/sprout/math/detail/config.hpp

29 lines
770 B
C++
Raw Normal View History

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
#if SPROUT_USE_BUILTIN_CMATH_FUNCTION
# define NS_SPROUT_MATH_DETAIL std
#else // #ifndef SPROUT_USE_BUILTIN_CMATH_FUNCTION
# define NS_SPROUT_MATH_DETAIL sprout::math::detail
#endif // #ifndef SPROUT_USE_BUILTIN_CMATH_FUNCTION
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