Preprocessor macro expanding to an expression
Space | User/kernel |
Context | Sync/async/rt-irq |
May block | No |
SPL | Any |
Dynamic memory | No |
#include <SPAD/AC.H>
int x = SPLX_MAX(splx1, splx2) ...
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 >.
SPL_X
or by other means (reading KERNEL$SPL
). SPL_X
or by other means (reading KERNEL$SPL
).An integer number representing the higher SPL of its two arguments. The return value is in the internal SPL format.
If one of the arguments is constant, the macro performs a compile-time check for correctness.