White magic

White magic#

White magic: Straightforward macros.

Defines

ARRAY_LENGTH(ARRAY)#

Number of elements of a C array.

Example

short    foo    = {21, 84, 57};
unsigned length = ARRAY_LENGTH(foo);
Will result in length = 3
Since

0.2

max(A, B)#

Highest of two numbers.

min(A, B)#

Lowest of two numbers.