5.3.57 _Q16power Function
This function finds the power result given the base value and the power value in Q16 format.
Include
<libq.h>
Prototype
_Q16 _Q16power(_Q16 x, _Q16 y);
Argument
x |
a fixed-point number in Q16 format. The value of this argument ranges from 0 to 2147483647. |
y |
a fixed-point number in Q16 format. The value of this argument ranges from 0 to 2147483647. |
Return Value
This function returns x
to the power of y
in Q16 format. The value ranges from 0 to 2147483647.