diff options
author | Jonathan Adamczewski <[email protected]> | 2009-01-14 12:37:46 +1100 |
---|---|---|
committer | Jonathan Adamczewski <[email protected]> | 2009-01-14 12:49:28 +1100 |
commit | f6d09531ff1588ea18048a842ab24338ae4bc5a7 (patch) | |
tree | c42319c6d9575789bd0172cd3bd6ab91f4011276 /src/gallium/drivers/cell | |
parent | 67c7f94a212864bf1d46e521e98638c3e5a83d4c (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')
-rw-r--r-- | src/gallium/drivers/cell/spu/spu_tri.c | 2 |
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 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 |