Implementation of lroundf, if needed.
This commit is contained in:
@@ -76,7 +76,7 @@ using namespace std;
|
|||||||
namespace Checkpoints
|
namespace Checkpoints
|
||||||
{
|
{
|
||||||
void SetCheckpoint( const char *file, int line, const char *message );
|
void SetCheckpoint( const char *file, int line, const char *message );
|
||||||
};
|
}
|
||||||
#define CHECKPOINT (Checkpoints::SetCheckpoint(__FILE__, __LINE__, NULL))
|
#define CHECKPOINT (Checkpoints::SetCheckpoint(__FILE__, __LINE__, NULL))
|
||||||
#define CHECKPOINT_M(m) (Checkpoints::SetCheckpoint(__FILE__, __LINE__, m))
|
#define CHECKPOINT_M(m) (Checkpoints::SetCheckpoint(__FILE__, __LINE__, m))
|
||||||
|
|
||||||
@@ -208,6 +208,11 @@ inline float roundf( float f ) CONST_FUNCTION;
|
|||||||
float roundf( float f ) { if( f < 0.0f ) return truncf( f-0.5f ); return truncf( f+0.5f ); }
|
float roundf( float f ) { if( f < 0.0f ) return truncf( f-0.5f ); return truncf( f+0.5f ); }
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef NEED_LROUNDF
|
||||||
|
inline long int lroundf( float f ) CONST_FUNCTION;
|
||||||
|
long int lroundf( float f ) { return (long int)roundf( f ); }
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef NEED_STRTOF
|
#ifdef NEED_STRTOF
|
||||||
inline float strtof( const char *s, char **se ) { return (float) strtod( s, se ); }
|
inline float strtof( const char *s, char **se ) { return (float) strtod( s, se ); }
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user