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)
Example
long l = 0x87654321;

short result;



result = extract_l(l);

// Expected value of result: 0x4321