fix RUP so it actually works. only works with powers of two now, though

This commit is contained in:
Bill Currie 2002-07-11 20:16:03 +00:00
parent de89733c5b
commit 4b83c6592c

View file

@ -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