_Q16norm Function

This function finds the normalized value of a Q16 value.

Include

<libq.h>

Prototype

_Q16 _Q16norm(_Q16 x);

Argument

x - a fixed-point number in Q16 format. The value of this argument ranges from -2147483648 to 2147483647.

x a fixed-point number in Q16 format. The value of this argument ranges from -2147483648 to 2147483647.

Return Value

This function returns the square root of x in Q16 format. The value ranges from 16384 to -32767 for a positive number and -2147483648 to -1073741824 for a negative number.