L_shr - The L_shr function arithmetically shifts the input variable x right n positions, sign extending the result. If n is negative, the L_shr function arithmetically shifts x left by -n bits, zero filling the least significant bits.
L_shr函数将x算术右移n位,并扩展其符号位。如果n为负数,L_shr函数将x算术左移n位,低位补零.
ANSIC prototype: Frac32 L_shr(Frac32 x, Int16 n)
x:Frac32 - The input data value.
n:Int16 - The number of bits to right shift x; n is signed and, if negative, implies a right shift. 红色应该是笔误
Return value:Frac32 - The function returns the value x arithmetically shifted by n bits.
|