ATM_oru
2-12
C Interface
Syntax
uval = ATM_oru(udst, usrc);
Parameters
volatile Uns
*udst;
/* pointer to unsigned */
Uns
usrc;
/* unsigned mask */
Return Value
Uns
uva;
/* previous value of *udst */
Description
ATM_oru atomically ORs the mask contained in usrc with a destination
memory location and overwrites the destination value *udst with the
result as follows:
`interrupt disable`
uval = *udst;
*udst = uval | usrc;
`interrupt enable`
return(uval);
ATM_oru is written in assembly language, efficiently disabling interrupts
on the target processor during the call.
See Also
ATM_oru
Atomically OR Uns memory location and return previous value