mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-18 23:11:38 +00:00
fix RUP so it actually works. only works with powers of two now, though
This commit is contained in:
parent
de89733c5b
commit
4b83c6592c
1 changed files with 1 additions and 1 deletions
|
@ -108,6 +108,6 @@ int yyparse (void);
|
||||||
memset (v, 0, sizeof (*v)); \
|
memset (v, 0, sizeof (*v)); \
|
||||||
} while (0)
|
} while (0)
|
||||||
|
|
||||||
#define RUP(x,a) (((x) + ((a) - 1)) % (a))
|
#define RUP(x,a) (((x) + ((a) - 1)) & ~((a) - 1))
|
||||||
|
|
||||||
#endif//__qfcc_h
|
#endif//__qfcc_h
|
||||||
|
|
Loading…
Reference in a new issue