mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-27 12:48:22 +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