User`s guide

Inline Assembly Language and Intrinsics
Intrinsic Functions
149Targeting MC56F83xx/DSP5685x Controllers
L_add
Addition of two 32-bit integer or fractional values, returning a 32-bit result.
Assumptions
OMR’s SA bit was set to 1 at least 3 cycles before this code, that is, saturation on data
ALU results enabled.
Prototype
Word32 L_add(Word32 src_dst, Word32 src2)
Example
long la = 0x40000000; /* 0.5 */
long lb = 0x20000000; /* 0.25 */
long result;
result = L_add(la,lb);
// Expected value of result: 0x60000000 = 0.75
L_sub
Subtraction of two 32-bit integer or fractional values, returning a 32-bit result.
Assumptions
OMR’s SA bit was set to 1 at least 3 cycles before this code, that is, saturation on data
ALU results enabled.
Prototype
Word32 L_sub(Word32 src_dst, Word32 src2)