42_KFS/libbozo/headers/utils.h

7 lines
204 B
C
Raw Normal View History

2024-09-25 17:01:59 -04:00
#pragma once
2024-11-26 06:43:09 -05:00
#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)