Function xf::cv::Inverse32

Function Documentation

static unsigned int xf::cv::Inverse32(unsigned short x, int M, char *N)

Funtion to find 1/x. x is QM.(16-M) fixed point format. The value returned is of 32-bit wide with fractional part equal to N i.e. Q(32-N).N. This works only for a 16-bit fixed point representation of x.

Inverse32: Computes the inverse of 16-bit integer and returns high precision value.