diff options
Diffstat (limited to 'src/mesa/main/image.c')
-rw-r--r-- | src/mesa/main/image.c | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/src/mesa/main/image.c b/src/mesa/main/image.c index 3830b0318ee..b36c804e532 100644 --- a/src/mesa/main/image.c +++ b/src/mesa/main/image.c @@ -1,10 +1,10 @@ -/* $Id: image.c,v 1.69 2002/10/24 23:57:21 brianp Exp $ */ +/* $Id: image.c,v 1.70 2003/03/01 01:50:21 brianp Exp $ */ /* * Mesa 3-D graphics library - * Version: 4.1 + * Version: 5.1 * - * Copyright (C) 1999-2002 Brian Paul All Rights Reserved. + * Copyright (C) 1999-2003 Brian Paul All Rights Reserved. * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), @@ -31,11 +31,16 @@ #include "imports.h" #include "histogram.h" #include "macros.h" -#include "mmath.h" #include "pixel.h" #include "mtypes.h" + +/* Compute ceiling of integer quotient of A divided by B: */ +#define CEILING( A, B ) ( (A) % (B) == 0 ? (A)/(B) : (A)/(B)+1 ) + + + /* * These are the image packing parameters for Mesa's internal images. * That is, _mesa_unpack_image() returns image data in this format. |