diff options
author | Francisco Jerez <[email protected]> | 2015-02-10 15:37:47 +0200 |
---|---|---|
committer | Francisco Jerez <[email protected]> | 2015-02-10 15:37:47 +0200 |
commit | 818585b9f9ccd55b992e35f4d74120f0e879559f (patch) | |
tree | dbe2588bb57919327a1d70ff97b3afa4c6be1924 /src/mesa/main/pack.c | |
parent | 1e02f2badfd925739099bcfaa55ca99a484470d8 (diff) |
mesa: Rename the CEILING() macro to DIV_ROUND_UP().
Some people have complained that code using the CEILING() macro is
difficult to understand because it's not immediately obvious what it
is supposed to do until you go and look up its definition. Use a more
descriptive name that matches the similar utility macro in the Linux
kernel.
Reviewed-by: Matt Turner <[email protected]>
Diffstat (limited to 'src/mesa/main/pack.c')
-rw-r--r-- | src/mesa/main/pack.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/main/pack.c b/src/mesa/main/pack.c index 4cc8468d0d9..2111a760400 100644 --- a/src/mesa/main/pack.c +++ b/src/mesa/main/pack.c @@ -155,7 +155,7 @@ _mesa_pack_bitmap( GLint width, GLint height, const GLubyte *source, if (!source) return; - width_in_bytes = CEILING( width, 8 ); + width_in_bytes = DIV_ROUND_UP( width, 8 ); src = source; for (row = 0; row < height; row++) { GLubyte *dst = (GLubyte *) _mesa_image_address2d(packing, dest, |