1.4.4.39 libq_q15_RoundL_q31 Function
Rounds the lower 16-bits of the 32-bit fractional input.
Description
Function libq_q15_RoundL_q31:
Rounds the lower 16-bits of the 32-bit fractional input into a 16-bit fractional value with saturation. This converts the 32-bit fractional value to 16-bit fractional value with rounding. This function calls the Add function to perform the 32-bit rounding of the input value and ExtractH function to extract to top 16-bits. This has the effect of rounding positive fractional values up and more positive, and has the effect of rounding negative fractional values up and more positive. This function relates to the ETSI round function.
Returns
q15 result
C
q15 libq_q15_RoundL_q31 (q31);