ATM_ori
Application Program Interface
2-11
C Interface
Syntax
ival = ATM_ori(idst, isrc);
Parameters
volatile Int
*idst;
/* pointer to integer */
Int
isrc;
/* integer mask */
Return Value
Int
ival;
/* previous value of *idst */
Description
ATM_ori atomically ORs 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_ori is written in assembly language, efficiently disabling interrupts
on the target processor during the call.
See Also
ATM_ori
Atomically OR Int memory location and return previous value