5.3.25 _Q15shlNoSat Function
This function shifts a Q15 value by num
bits, to the left
if num
is positive or to the right if num
is negative.
The function sets the _Q15shlSatFlag
variable in case of underflow or
overflow but does not take care of saturation.
Include
<libq.h>
Prototype
_Q15 _Q15shlNoSat(_Q15 x, short num);
Arguments
x |
a fixed-point number in Q15 format, which ranges from -215 to 215-1. The value of this argument ranges from -32768 to 32767. |
num |
an integer number, which ranges from -15 to 15. |
Return Value
This function returns the shifted value of x
in Q15 format.
The value ranges from -32768 to 32767.