Helper Reference Manual 1.7.1
Loading...
Searching...
No Matches
macros.h File Reference

Common helper macros. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define ODPH_ARRAY_SIZE(a)   (sizeof(a) / sizeof((a)[0]))
 Return number of elements in array.
 
#define ODPH_MIN(a, b)
 Return minimum of two numbers.
 
#define ODPH_MAX(a, b)
 Return maximum of two numbers.
 
#define ODPH_ABS(v)
 Return absolute value of signed variable.
 
#define ODPH_DIV_ROUNDUP(dividend, divisor)
 Return division of two numbers rounded up to the closest integer (positive values expected)
 
#define ODPH_ROUNDUP_MULTIPLE(x, y)
 Round up 'x' to next multiple of 'y' (positive values expected)
 

Detailed Description

Common helper macros.

Definition in file macros.h.