From: Jonathan Adamczewski Date: Wed, 14 Jan 2009 01:37:46 +0000 (+1100) Subject: cell: Specify constant as float for CEILF(). X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f6d09531ff1588ea18048a842ab24338ae4bc5a7;p=mesa.git cell: Specify constant as float for CEILF(). Without the f, the constant is treated as a double, resulting in slower arithmetic and libgcc conversion calls each time CEILF() is used. --- diff --git a/src/gallium/drivers/cell/spu/spu_tri.c b/src/gallium/drivers/cell/spu/spu_tri.c index 322be1252e9..0d9fcb99970 100644 --- a/src/gallium/drivers/cell/spu/spu_tri.c +++ b/src/gallium/drivers/cell/spu/spu_tri.c @@ -57,7 +57,7 @@ struct vertex_header { /* XXX fix this */ #undef CEILF -#define CEILF(X) ((float) (int) ((X) + 0.99999)) +#define CEILF(X) ((float) (int) ((X) + 0.99999f)) #define QUAD_TOP_LEFT 0