summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/cell/spu
diff options
context:
space:
mode:
authorJonathan Adamczewski <jadamcze@utas.edu.au>2009-01-14 12:37:46 +1100
committerJonathan Adamczewski <jadamcze@utas.edu.au>2009-01-14 12:49:28 +1100
commitf6d09531ff1588ea18048a842ab24338ae4bc5a7 (patch)
treec42319c6d9575789bd0172cd3bd6ab91f4011276 /src/gallium/drivers/cell/spu
parent67c7f94a212864bf1d46e521e98638c3e5a83d4c (diff)
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.
Diffstat (limited to 'src/gallium/drivers/cell/spu')
-rw-r--r--src/gallium/drivers/cell/spu/spu_tri.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/cell/spu/spu_tri.c b/src/gallium/drivers/cell/spu/spu_tri.c
index 322be1252e..0d9fcb9997 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