mirror of
https://github.com/bolero-MURAKAMI/Sprout
synced 2025-08-03 12:49:50 +00:00
fix math functions
This commit is contained in:
parent
2e2b6c96ab
commit
ffb876c930
23 changed files with 85 additions and 37 deletions
|
@ -15,7 +15,7 @@ namespace sprout {
|
|||
typename FloatType,
|
||||
typename sprout::enabler_if<std::is_floating_point<FloatType>::value>::type = sprout::enabler
|
||||
>
|
||||
inline SPROUT_CONSTEXPR int
|
||||
inline SPROUT_CONSTEXPR bool
|
||||
issubnormal_or_zero(FloatType x) {
|
||||
return x > 0
|
||||
? x < std::numeric_limits<double>::min()
|
||||
|
@ -27,7 +27,7 @@ namespace sprout {
|
|||
typename FloatType,
|
||||
typename sprout::enabler_if<std::is_floating_point<FloatType>::value>::type = sprout::enabler
|
||||
>
|
||||
inline SPROUT_CONSTEXPR int
|
||||
inline SPROUT_CONSTEXPR bool
|
||||
issubnormal(FloatType x) {
|
||||
return !sprout::math::isnan(x)
|
||||
&& !sprout::math::iszero(x)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue