1
0
Fork 0
mirror of https://github.com/bolero-MURAKAMI/Sprout synced 2025-08-03 12:49:50 +00:00

fix math: rounding function,etc...

This commit is contained in:
bolero-MURAKAMI 2013-02-10 11:54:54 +09:00
parent 53b99b25f8
commit 434aa8d3c5
22 changed files with 812 additions and 74 deletions

View file

@ -1,6 +1,7 @@
#ifndef SPROUT_MATH_DETAIL_CONFIG_HPP
#define SPROUT_MATH_DETAIL_CONFIG_HPP
#include <cfloat>
#include <sprout/config.hpp>
#if SPROUT_USE_BUILTIN_CMATH_FUNCTION
# include <cmath>
@ -12,6 +13,12 @@
# define NS_SPROUT_MATH_DETAIL sprout::math::detail
#endif // #ifndef SPROUT_USE_BUILTIN_CMATH_FUNCTION
#if (FLT_RADIX == 2)
# define SPROUT_FLT_RADIX_IS_2 1
#else
# define SPROUT_FLT_RADIX_IS_2 0
#endif
#if SPROUT_NOERROR_LARGE_FLOAT_ROUNDING
# define SPROUT_MATH_THROW_LARGE_FLOAT_ROUNDING(e, x) (x)
#else