use osi epicsMath.h

This commit is contained in:
Michael Davidsaver
2010-03-24 13:17:41 -04:00
parent cadbcb43a2
commit 356ee58927

View File

@@ -18,7 +18,7 @@
#include <string>
#include <stdexcept>
#include <cmath>
#include "epicsMath.h"
#define epicsExportSharedSymbols
#include "epicsTimer.h"
@@ -129,7 +129,7 @@ epicsShareFunc epicsTimerNotify::expireStatus::expireStatus
throw std::logic_error
( "no timer restart was requested, but a delay was specified?" );
}
if ( this->delay < 0.0 || !std::isfinite(this->delay) ) {
if ( this->delay < 0.0 || !finite(this->delay) ) {
throw std::logic_error
( "timer restart was requested, but a negative delay was specified?" );
}
@@ -137,12 +137,12 @@ epicsShareFunc epicsTimerNotify::expireStatus::expireStatus
epicsShareFunc bool epicsTimerNotify::expireStatus::restart () const
{
return this->delay >= 0.0 && std::isfinite(this->delay);
return this->delay >= 0.0 && finite(this->delay);
}
epicsShareFunc double epicsTimerNotify::expireStatus::expirationDelay () const
{
if ( this->delay < 0.0 || !std::isfinite(this->delay) ) {
if ( this->delay < 0.0 || !finite(this->delay) ) {
throw std::logic_error
( "no timer restart was requested, but you are asking for a restart delay?" );
}