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

support hash: floating point

This commit is contained in:
bolero-MURAKAMI 2013-02-07 23:12:57 +09:00
parent 63ef07d124
commit 7aa10d1e08
276 changed files with 542 additions and 325 deletions

View file

@ -1,7 +1,7 @@
#ifndef SPROUT_MATH_SCALBLN_HPP
#define SPROUT_MATH_SCALBLN_HPP
#include <cfloat>
#include <limits>
#include <type_traits>
#include <sprout/config.hpp>
#include <sprout/math/detail/config.hpp>
@ -17,7 +17,7 @@ namespace sprout {
>
inline SPROUT_CONSTEXPR FloatType
scalbln(FloatType x, long exp) {
return x * sprout::detail::pow_n(FloatType(FLT_RADIX), exp);
return x * sprout::detail::pow_n(FloatType(std::numeric_limits<FloatType>::radix), exp);
}
template<