From c9cb9cf0502f4ca179ed1b4dd763c94912843d38 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Fri, 18 May 2012 14:45:20 -0600 Subject: mesa: use F_TO_I() instead of IROUND() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Use it where performance matters more and the exact method of float->int conversion/rounding isn't terribly important. There should no net change here since F_TO_I() is the new name of the old IROUND() function. Reviewed-by: José Fonseca --- src/mesa/main/pack.c | 220 +++++++++++++++++++++++++-------------------------- 1 file changed, 110 insertions(+), 110 deletions(-) (limited to 'src/mesa/main/pack.c') diff --git a/src/mesa/main/pack.c b/src/mesa/main/pack.c index 4d4b4a82569..c25a02e8552 100644 --- a/src/mesa/main/pack.c +++ b/src/mesa/main/pack.c @@ -1726,9 +1726,9 @@ _mesa_pack_rgba_span_float(struct gl_context *ctx, GLuint n, GLfloat rgba[][4], if (dstFormat == GL_RGB) { GLubyte *dst = (GLubyte *) dstAddr; for (i=0;i