ATM_andi
Application Program Interface
2-3
C Interface
Syntax
ival = ATM_andi(idst, isrc);
Parameters
volatile Int
*idst;
/* pointer to integer */
Int
isrc;
/* integer mask */
Return Value
Int
ival;
/* previous value of *idst */
Description
ATM_andi atomically ANDs the mask contained in isrc with a destination
memory location and overwrites the destination value *idst with the result
as follows:
`interrupt disable`
ival = *idst;
*idst = ival & isrc;
`interrupt enable`
return(ival);
ATM_andi is written in assembly language, efficiently disabling interrupts
on the target processor during the call.
See Also
ATM_andi
Atomically AND Int memory location and return previous value