ATM_deci
Application Program Interface
2-7
C Interface
Syntax
ival = ATM_deci(idst);
Parameters
volatile Int
*idst;
/* pointer to integer */
Return Value
Int
ival;
/* new value after decrement */
Description
ATM_deci atomically decrements an Int memory location and returns its
new value as follows:
`interrupt disable`
ival = *idst - 1;
*idst = ival;
`interrupt enable`
return (ival);
ATM_deci is written in assembly language, efficiently disabling interrupts
on the target processor during the call.
Decrementing a value equal to the minimum signed integer results in a
value equal to the maximum signed integer.
See Also
ATM_deci
Atomically decrement Int memory and return new value