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.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user