From 4b83c6592c12127167830db24819ac54b1ac8b40 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Thu, 11 Jul 2002 20:16:03 +0000 Subject: [PATCH] fix RUP so it actually works. only works with powers of two now, though --- tools/qfcc/include/qfcc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/qfcc/include/qfcc.h b/tools/qfcc/include/qfcc.h index 14e929f32..3eb673fbc 100644 --- a/tools/qfcc/include/qfcc.h +++ b/tools/qfcc/include/qfcc.h @@ -108,6 +108,6 @@ int yyparse (void); memset (v, 0, sizeof (*v)); \ } while (0) -#define RUP(x,a) (((x) + ((a) - 1)) % (a)) +#define RUP(x,a) (((x) + ((a) - 1)) & ~((a) - 1)) #endif//__qfcc_h