Shl2 - Optimized Version Of Shl Intrinsic Function; Shl2 Arguments - Freescale Semiconductor DSP56800E User Manual

Hide thumbs Also See for DSP56800E:
Table of Contents

Advertisement

Core System Infrastructure
Example 2-31. impysu function usage
Word16 var1 = -32768;
UWord16 var2 = 65535U;
Word32 result;
result = impysu(var1, var2); /* returns -2147450880 */
This code multiplies variables var1 and var2 and returns the result in result variable.
2.4.3.3

shl2 - optimized version of shl intrinsic function

Call(s):
Word16 shl2(Word16 num, UWord16 shifts);
Arguments:
num
shifts
Description: The shl2 function performs a multi-bit arithmetic shift of the first parameter to the
left by the amount specified in the second parameter. The result is returned as a 16-bit integer.
This function is the optimized version of the shl intrinsic function (see CodeWarrior Help for
more information on shl).
Returns: num parameter shifted shifts times to the left
Example 2-32. shl2 function usage
Word16 var1 = 1;
UWord16 var2 = 15;
Word16 result;
result = shl2(var1, var2); /* returns 0x8000 */
This code shifts var1 variable var2 times to the left and returns the result in result variable.
2-22
Table 2-17. shl2 arguments
in
parameter to be shifted
in
number of shifts
Targeting 56F8xxx Platform
FREESCALE SEMICONDUCTOR

Advertisement

Table of Contents
loading

Table of Contents