Distributed Systems Network Management (DSNM) Subsystem Interface Development Guide

DSNM Library Services
Distributed Systems Network Management (DSNM) Subsystem Interface Development
Guide109759 A-9
_ALLOFF
_ALLOFF
_ALLOFF is a Boolean define statement that is TRUE if every one-bit of bit-mask is
off in int-exp. TRUE is nonzero, not necessarily -1.
The _ALLOFF function is the same as the _OFF function. It is more descriptive to use
_ALLOFF when testing more than one bit.
int-exp input
INT:value
is the INT expression being compared with bit-mask.
bit-mask input
INT:value
is an INT expression, the one-bits of which identify the bits in int-exp to test.
Example
The following example tests if both bits 9 and 11 in var are off:
INT var;
LITERAL evta = %20; !evta.<11> on
LITERAL evtb = %100; !evtb.<9> on
IF _ALLOFF ( var, evta + evtb )
THEN ... !both var.<9> and var.<11> are zero
ELSE ...; !at least one of var.<9> and var.<11> is one
_ALLOFF ( int-exp , bit-mask )