mirror of
https://github.com/bolero-MURAKAMI/Sprout
synced 2025-08-03 12:49:50 +00:00
fix math implementation.
This commit is contained in:
parent
3500d0d49c
commit
1636398742
49 changed files with 227 additions and 456 deletions
|
@ -5,13 +5,11 @@
|
|||
#include <limits>
|
||||
#include <type_traits>
|
||||
#include <sprout/config.hpp>
|
||||
#include <sprout/math/detail/config.hpp>
|
||||
#include <sprout/math/constants.hpp>
|
||||
#include <sprout/math/factorial.hpp>
|
||||
#include <sprout/math/sqrt.hpp>
|
||||
#include <sprout/type_traits/enabler_if.hpp>
|
||||
#if SPROUT_USE_BUILTIN_CMATH_FUNCTION
|
||||
# include <cmath>
|
||||
#endif
|
||||
|
||||
namespace sprout {
|
||||
namespace math {
|
||||
|
@ -69,11 +67,7 @@ namespace sprout {
|
|||
}
|
||||
} // namespace detail
|
||||
|
||||
# if SPROUT_USE_BUILTIN_CMATH_FUNCTION
|
||||
using std::log;
|
||||
# else
|
||||
using sprout::math::detail::log;
|
||||
# endif
|
||||
using NS_SPROUT_MATH_DETAIL::log;
|
||||
} // namespace math
|
||||
|
||||
using sprout::math::log;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue