Hello all,
The description of the _shr2 & _shru2 intrinsics appears to be incorrect.
in the Optimizing Compiler guide (spru187v.pdf) the description is:
int _shr2 (int src1, unsigned src2);
unsigned shru2 (unsigned src1, unsigned src2);
For each 16-bit quantity in src2, the quantity is arithmetically or
logically shifted right by src1 number of bits. src2 can contain signed
or unsigned values.
The code (CCS6, Compiler TIv7.4.1) appears to reverse the order (shift value in src2, 16bit packed vales in src1).
Regards