Distributed Systems Network Management (DSNM) Subsystem Interface Development Guide
DSNM Library Services
Distributed Systems Network Management (DSNM) Subsystem Interface Development
Guide—109759 A-13
_ANYON
_ANYON
_ANYON is a Boolean define statement that is TRUE if any one-bit of bit-mask is on
in int-exp. TRUE is nonzero, not necessarily -1.
The _ANYON function is the same as the _ON function. It is more descriptive to use
_ANYON when testing more than one bit.
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 on:
INT var;
LITERAL evta = %20; !evta.<11> on
LITERAL evtb = %100; !evtb.<9> on
IF _ANYON ( var, evta + evtb )
THEN ... !at least one of var.<9> and var.<11> is one
ELSE ...; !both var.<9> and var.<11> are zero
_ANYON ( int-exp , bit-mask )