7 lines
204 B
C
7 lines
204 B
C
#pragma once
|
|
|
|
#define CEIL(x, y) (((x) + (y) - 1) / (y))
|
|
#define ARRAY_SIZE(ptr) (sizeof(ptr) / sizeof(ptr[0]))
|
|
#define ROUND_CEIL(x, y) (CEIL(x, y) * y)
|
|
#define ROUND_FLOOR(x, y) ((x / y) * y)
|