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.
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. |