mesa: Rename the CEILING() macro to DIV_ROUND_UP().
[mesa.git] / src / mesa / main / pack.c
index 4cc8468d0d9e5ac81ba5230860187559f35afb6c..2111a76040071f05cf44d339e3cee3fb1fa937e0 100644 (file)
@@ -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,