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

add math functions: logb, ilogb

This commit is contained in:
bolero-MURAKAMI 2013-02-07 18:14:50 +09:00
parent 4b3d4e82d7
commit d05b597e80
13 changed files with 218 additions and 11 deletions

View file

@ -17,7 +17,7 @@ namespace sprout {
>
inline SPROUT_CONSTEXPR FloatType
scalbn(FloatType x, int exp) {
return static_cast<FloatType>(x * sprout::detail::pow_n(FloatType(FLT_RADIX), exp));
return x * sprout::detail::pow_n(FloatType(FLT_RADIX), exp);
}
template<