summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/image.c
diff options
context:
space:
mode:
authorFrancisco Jerez <currojerez@riseup.net>2015-02-10 15:37:47 +0200
committerFrancisco Jerez <currojerez@riseup.net>2015-02-10 15:37:47 +0200
commit818585b9f9ccd55b992e35f4d74120f0e879559f (patch)
treedbe2588bb57919327a1d70ff97b3afa4c6be1924 /src/mesa/main/image.c
parent1e02f2badfd925739099bcfaa55ca99a484470d8 (diff)
downloadexternal_mesa3d-818585b9f9ccd55b992e35f4d74120f0e879559f.zip
external_mesa3d-818585b9f9ccd55b992e35f4d74120f0e879559f.tar.gz
external_mesa3d-818585b9f9ccd55b992e35f4d74120f0e879559f.tar.bz2
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 <mattst88@gmail.com>
Diffstat (limited to 'src/mesa/main/image.c')
-rw-r--r--src/mesa/main/image.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/main/image.c b/src/mesa/main/image.c
index c37900c..e97b006 100644
--- a/src/mesa/main/image.c
+++ b/src/mesa/main/image.c
@@ -151,7 +151,7 @@ _mesa_image_offset( GLuint dimensions,
assert(format == GL_COLOR_INDEX || format == GL_STENCIL_INDEX);
bytes_per_row = alignment
- * CEILING( comp_per_pixel*pixels_per_row, 8*alignment );
+ * DIV_ROUND_UP( comp_per_pixel*pixels_per_row, 8*alignment );
bytes_per_image = bytes_per_row * rows_per_image;