From 64880d073ab21ae1abad0c049ea2d6a1169a3cfa Mon Sep 17 00:00:00 2001 From: Axel Davy Date: Sun, 26 Apr 2015 23:17:45 +0200 Subject: util/macros: Move DIV_ROUND_UP to util/macros.h Move DIV_ROUND_UP to a shared location accessible everywhere Reviewed-by: Brian Paul Signed-off-by: Axel Davy --- src/mesa/main/macros.h | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/mesa/main') diff --git a/src/mesa/main/macros.h b/src/mesa/main/macros.h index 3344ec84169..0608650aeb4 100644 --- a/src/mesa/main/macros.h +++ b/src/mesa/main/macros.h @@ -31,6 +31,7 @@ #ifndef MACROS_H #define MACROS_H +#include "util/macros.h" #include "util/u_math.h" #include "imports.h" @@ -800,10 +801,6 @@ DIFFERENT_SIGNS(GLfloat x, GLfloat y) } -/** Compute ceiling of integer quotient of A divided by B. */ -#define DIV_ROUND_UP( A, B ) ( (A) % (B) == 0 ? (A)/(B) : (A)/(B)+1 ) - - /** casts to silence warnings with some compilers */ #define ENUM_TO_INT(E) ((GLint)(E)) #define ENUM_TO_FLOAT(E) ((GLfloat)(GLint)(E)) -- cgit v1.2.3