use standard name "isfinite", not "finite"

This commit is contained in:
Glenn Maynard
2006-06-15 03:15:41 +00:00
parent 38a7ff109e
commit f0b7631e3a
4 changed files with 6 additions and 6 deletions
+2 -2
View File
@@ -258,7 +258,7 @@ void PlayerOptions::FromString( const RString &sOptions, bool bWarnOnInvalid )
else if( *s[0]=='*' )
{
sscanf( *s, "*%f", &speed );
if( !finite(speed) )
if( !isfinite(speed) )
speed = 1.0f;
}
}
@@ -280,7 +280,7 @@ void PlayerOptions::FromString( const RString &sOptions, bool bWarnOnInvalid )
}
else if( sscanf( sBit, "c%f", &level ) == 1 )
{
if( !finite(level) || level <= 0.0f )
if( !isfinite(level) || level <= 0.0f )
level = 200.0f; // Just pick some value.
SET_FLOAT( fScrollBPM )
SET_FLOAT( fTimeSpacing )
+2 -2
View File
@@ -1478,7 +1478,7 @@ float StringToFloat( const RString &sString )
{
float ret = strtof( sString, NULL );
if( !finite(ret) )
if( !isfinite(ret) )
ret = 0.0f;
return ret;
}
@@ -1907,7 +1907,7 @@ bool FromString( const RString &sValue, float &out )
{
const char *endptr = sValue.data() + sValue.size();
out = strtof( sValue, (char **) &endptr );
return endptr != sValue.data() && finite( out );
return endptr != sValue.data() && isfinite( out );
}
bool FromString( const RString &sValue, bool &out )
+1 -1
View File
@@ -134,7 +134,7 @@ void StreamDisplay::SetPercent( float fPercent )
DEBUG_ASSERT_M( 0, "fPercent is NaN" );
fPercent = 1;
}
if( !finite(fPercent) )
if( !isfinite(fPercent) )
{
DEBUG_ASSERT_M( 0, "fPercent is infinite" );
fPercent = 1;
+1 -1
View File
@@ -56,7 +56,7 @@ inline const T& min(const T &a, const T &b, P Pr) { return Pr(b, a)? b:a; }
#define lstat stat
#define fsync _commit
#define isnan _isnan
#define finite _finite
#define isfinite _finite
/* mkdir is missing the mode arg */
#define mkdir(p,m) mkdir(p)