C6000 Programmer's Guide Errata
From Texas Instruments Embedded Processors Wiki
ROTL Intrinsic Description Error
Page 2-22 includes the below description
uint _rotl(uint src1, uint src2); ROTL Rotates scr2 to the left by the amount in src1
Which has the src1 and src2 arguments transposed from where they should be in the call. The following is what it should read.
uint _rotl(uint src2, uint src1); ROTL Rotates src2 to the left by the amount in src1
_spint Intrinsic Description Error
Page 2-28
The description for the int _spint(float); intrinsic should read: "Converts 32-bit float to 32-bit signed integer, using the rounding mode specified in the FADCR register."
shr2 / shru2 intrinsic errors
Page 2-22 Table 2-7
The intrinsic shru2 does not have a preceding underscore. It should read: "uint _shru2 (uint src1, uint src2);"
The description for the intrinsics _shr2 and _shru2 should read: "For each 16-bit quantity in src1, the quantity is arithmetically or logically shifted right by src2 number of bits. src1 can contain signed or unsigned values"
Leave a Comment