tests/cuda2.2/tests/Dct8x8/BmpUtil.cpp
float round_f(float num) 
{
	float NumAbs = fabs(num);
	int NumAbsI = (int)(NumAbs + 0.5f);
	float sign = num > 0 ? 1.0f : -1.0f;
	return sign * NumAbsI;
}
/**
**************************************************************************
*  Float round to nearest value
*
* \param num			[IN] - Float value to round
*  
* \return The closest to the input float integer value
*/
Float round to nearest value
\param num                     [IN] - Float value to round

\return The closest to the input float integer value
Float round to nearest value \ param num [ IN ] - Float value to round \ return The closest to the input float integer value
float round_f(float num) 
{
	float NumAbs = fabs(num);
	int NumAbsI = (int)(NumAbs + 0.5f);
	float sign = num > 0 ? 1.0f : -1.0f;
	return sign * NumAbsI;
}
float round_f ( float num ) { float NumAbs = fabs ( num ) ; int NumAbsI = ( int ) ( NumAbs + 0.5f ) ; float sign = num > 0 ? 1.0f : -1.0f ; return sign * NumAbsI ; }
Float round to nearest value
\param num                     [IN] - Float value to round
Float round to nearest value \ param num [ IN ] - Float value to round