iOS/buildlibs/armv7/allegro-4.4.2/addons/allegrogl/src/fontconv.c
/* iroundf:
 * Round float to nearest integer, away from zero.
 */
Round float to nearest integer, away from zero.
Round float to nearest integer away from zero .
static int iroundf(float v) {
	float f = floor(v);
	float c = ceil(v);
	if (v >= 0) {
		if ((c - v) < (v - f))
			return (int)c;
		else
			return (int)f;
	}
	else {
		if ((c - v) < (v - f)) 
			return (int)f;
		else
			return (int)c;
	}
}
static int iroundf ( float v ) { float f = floor ( v ) ; float c = ceil ( v ) ; if ( v >= 0 ) { if ( ( c - v ) < ( v - f ) ) return ( int ) c ; else return ( int ) f ; } else { if ( ( c - v ) < ( v - f ) ) return ( int ) f ; else return ( int ) c ; } }
iroundf:
 Round float to nearest integer, away from zero.
iroundf : Round float to nearest integer away from zero .
/* distance to ceil smaller than distance to floor */ /* distance to ceil smaller than distance to floor */