mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-11-01 15:08:21 +00:00
kernel: util.h
This commit is contained in:
@@ -0,0 +1,7 @@
|
|||||||
|
#ifndef _UTIL_H
|
||||||
|
#define _UTIL_H
|
||||||
|
|
||||||
|
#define ROUND_UP(v, n) (n - (v % n) + v)
|
||||||
|
#define ROUND_DOWN(v, n) (v - (v % n))
|
||||||
|
|
||||||
|
#endif
|
||||||
Reference in New Issue
Block a user