_Q15power Function

This function finds the power result given the base value and the power value in Q15 format.

Include

<libq.h>

Prototype

_Q15 _Q15power(_Q15 x, _Q15 y);

Argument

x a fixed-point number in Q15 format, which ranges from 1 to 215-1. The value of this argument ranges from 1 to 32767.
y a fixed-point number in Q15 format, which ranges from 1 to 215-1. The value of this argument ranges from 1 to 32767.

Return Value

This function returns x to the power of y in Q15 format. The value ranges from 1 to 32767.