From 75d3b3b13e4a6c3d4125d7bbebf9f05d7e4079ba Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Mon, 30 Jun 2003 04:41:53 +0000 Subject: [PATCH] fix and simplify --- stepmania/src/RageUtil.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/stepmania/src/RageUtil.h b/stepmania/src/RageUtil.h index 15915857a2..d38b2c6214 100644 --- a/stepmania/src/RageUtil.h +++ b/stepmania/src/RageUtil.h @@ -109,10 +109,11 @@ inline double trunc( double f ) { return float(int(f)); }; #else #include #endif +#if defined(NEED_TRUNCF) inline float truncf( float f ) { return float(int(f)); }; -#ifndef HAVE_ROUNDF +#endif +#if defined(NEED_ROUNDF) inline float roundf( float f ) { if(f < 0) return truncf(f-0.5f); return truncf(f+0.5f); }; -inline double roundf( double f ){ if(f < 0) return trunc(f-0.5); return trunc(f+0.5); }; #endif inline float froundf( const float f, const float fRoundInterval ) {