Utility constants and macros. More...
Go to the source code of this file.
Defines | |
#define | MIN(a, b) |
Standard MIN(). | |
#define | MAX(a, b) |
Standard MAX(). | |
#define | CLAMP(val, lo, hi) |
Standard CLAMP(). | |
#define | RC_DIV_CEIL(num, den) |
Integer division, rounded up. | |
#define | RC_ALIGN(value) |
Round up 'value' to a multiple of RC_ALIGNMENT. |
Utility constants and macros.
#define CLAMP | ( | val, | |||
lo, | |||||
hi | ) |
Standard CLAMP().
#define MAX | ( | a, | |||
b | ) |
Standard MAX().
#define MIN | ( | a, | |||
b | ) |
Standard MIN().
#define RC_ALIGN | ( | value | ) |
Round up 'value' to a multiple of RC_ALIGNMENT.
#define RC_DIV_CEIL | ( | num, | |||
den | ) |
Integer division, rounded up.