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:
parent
4b3d4e82d7
commit
d05b597e80
13 changed files with 218 additions and 11 deletions
|
@ -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<
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue