Distributed Systems Network Management (DSNM) Subsystem Interface Development Guide

_ALLON
A-10
109759Distributed Systems Network Management (DSNM) Subsystem Interface
Development Guide
DSNM Library Services
_ALLON
_ALLON is a Boolean define statement that is TRUE if every one-bit of bit-mask is
on in int-exp. TRUE is nonzero, not necessarily -1.
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.
Examples
The following example tests if both bits 9 and 11 in var are on:
INT var;
LITERAL evta = %20; !evta.<11> on
LITERAL evtb = %100; !evtb.<9> on
IF _ALLON ( var, evta + evtb )
THEN ... !both var.<9> and var.<11> are one
ELSE ...; !at least one of var.<9> and var.<11> is
!zero
The following example tests if the event _EV^IODONE caused the current dispatch of
the thread:
IF _ALLON (_LAST^EVENTS, _EV^IODONE)
THEN ...;
_ALLON ( int-exp , bit-mask )