mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-27 12:48:22 +00:00
8 lines
138 B
C
8 lines
138 B
C
#ifndef _UTIL_H
|
|
#define _UTIL_H
|
|
|
|
#define ROUND_DOWN(v, n) ((v) - ((v) % (n)))
|
|
#define ROUND_UP(v, n) ROUND_DOWN((v) + (n) - 1, n)
|
|
|
|
#endif
|