Distributed Systems Network Management (DSNM) Subsystem Interface Development Guide

_ANYOFF
A-12
109759Distributed Systems Network Management (DSNM) Subsystem Interface
Development Guide
DSNM Library Services
_ANYOFF
_ANYOFF is a Boolean define statement that is TRUE if any one-bit of bit-mask is
off in int-exp. TRUE is nonzero, not necessarily -1.
int-exp input
INT:value
is the INT expression 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 at least one of bits 9 and 11 in var are off:
INT var;
LITERAL evta = %20; !evta.<11> on
LITERAL evtb = %100; !evtb.<9> on
IF _ANYOFF ( var, evta + evtb )
THEN ... !at least one of var.<9> and var.<11> is zero
ELSE ...; !both var.<9> and var.<11> are one
_ANYOFF ( int-exp , bit-mask )