5.3.91 _Q31power Function

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

Include

<libq.h>

Prototype

_Q31 _Q31power(_Q31 x, _Q31 y);

Argument

x a fixed-point number in Q31 format, which ranges from 1 to 231-1. The value of this argument ranges from 1 to 2147483647.
y a fixed-point number in Q31 format, which ranges from 1 to 231-1. The value of this argument ranges from 1 to 2147483647.

Return Value

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