mirror of
https://github.com/pocoproject/poco.git
synced 2025-03-30 07:26:33 +02:00
GH #51: Android should use isfinite, isinf, isnan and signbit from the std namespace
GH #51: Android should use isfinite, isinf, isnan and signbit from the std namespace
This commit is contained in:
parent
8a44e75187
commit
9b3fc90ee2
@ -42,7 +42,7 @@
|
||||
|
||||
|
||||
#include "Poco/Foundation.h"
|
||||
#include <math.h>
|
||||
#include <cmath>
|
||||
|
||||
|
||||
namespace Poco {
|
||||
@ -95,49 +95,49 @@ private:
|
||||
//
|
||||
inline bool FPEnvironmentImpl::isInfiniteImpl(float value)
|
||||
{
|
||||
return isinf(value) != 0;
|
||||
return std::isinf(value) != 0;
|
||||
}
|
||||
|
||||
|
||||
inline bool FPEnvironmentImpl::isInfiniteImpl(double value)
|
||||
{
|
||||
return isinf(value) != 0;
|
||||
return std::isinf(value) != 0;
|
||||
}
|
||||
|
||||
|
||||
inline bool FPEnvironmentImpl::isInfiniteImpl(long double value)
|
||||
{
|
||||
return isinf((double) value) != 0;
|
||||
return std::isinf((double) value) != 0;
|
||||
}
|
||||
|
||||
|
||||
inline bool FPEnvironmentImpl::isNaNImpl(float value)
|
||||
{
|
||||
return isnan(value) != 0;
|
||||
return std::isnan(value) != 0;
|
||||
}
|
||||
|
||||
|
||||
inline bool FPEnvironmentImpl::isNaNImpl(double value)
|
||||
{
|
||||
return isnan(value) != 0;
|
||||
return std::isnan(value) != 0;
|
||||
}
|
||||
|
||||
|
||||
inline bool FPEnvironmentImpl::isNaNImpl(long double value)
|
||||
{
|
||||
return isnan((double) value) != 0;
|
||||
return std::isnan((double) value) != 0;
|
||||
}
|
||||
|
||||
|
||||
inline float FPEnvironmentImpl::copySignImpl(float target, float source)
|
||||
{
|
||||
return copysignf(target, source);
|
||||
return std::copysignf(target, source);
|
||||
}
|
||||
|
||||
|
||||
inline double FPEnvironmentImpl::copySignImpl(double target, double source)
|
||||
{
|
||||
return copysign(target, source);
|
||||
return std::copysign(target, source);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user