User`s guide

Inline Assembly Language and Intrinsics
Intrinsic Functions
153Targeting MC56F83xx/DSP5685x Controllers
Deposit/Extract
The intrinsic functions of the deposit/extract group are:
extract_h
extract_l
L_deposit_h
L_deposit_l
extract_h
Extracts the 16 MSBs of a 32-bit integer or fractional value. Returns a 16-bit value.
Does not perform saturation. When an accumulator is the destination, zeroes out the
LSP portion. Corresponds to truncation when applied to fractional values.
Prototype
Word16 extract_h(Word32 lsrc)
Example
long l = 0x87654321;
short result;
result = extract_h(l);
// Expected value of result: 0x8765
extract_l
Extracts the 16 LSBs of a 32-bit integer or fractional value. Returns a 16-bit value.
Does not perform saturation. When an accumulator is the destination, zeroes out the
LSP portion.
Prototype
Word16 extract_l(Word32 lsrc)