Interface SPLX_MAX

Preprocessor macro expanding to an expression

SpaceUser/kernel
ContextSync/async/rt-irq
May blockNo
SPLAny
Dynamic memoryNo

#include <SPAD/AC.H>

int x = SPLX_MAX(splx1, splx2) ...

Description

Returns the higher of the two SPLs. Because the internal format is not specified (it's architecture-specific), they can't be compared with operators < or >.

Arguments

Returns

An integer number representing the higher SPL of its two arguments. The return value is in the internal SPL format.

Implementation note

If one of the arguments is constant, the macro performs a compile-time check for correctness.

See also

SPLX_BELOW, SPLX_MIN