Helper Reference Manual  1.7.1
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. More...
 
#define ODPH_MAX(a, b)
 Return maximum of two numbers. More...
 
#define ODPH_ABS(v)
 Return absolute value of signed variable. More...
 
#define ODPH_DIV_ROUNDUP(dividend, divisor)
 Return division of two numbers rounded up to the closest integer (positive values expected) More...
 
#define ODPH_ROUNDUP_MULTIPLE(x, y)
 Round up 'x' to next multiple of 'y' (positive values expected) More...
 

Detailed Description

Common helper macros.

Definition in file macros.h.