Function xf::cv::DivideYByX
Defined in File xf_math.h
Function Documentation
-
static unsigned int xf::cv::DivideYByX(unsigned short x, unsigned short y, int M1, int M2, char *out_M, char *out_N)
Funtion to find y/x. x is QM1.(16-M1) and y is QM2.(16-M2) fixed point format. The value returned is of 32-bit width fixed point format of Qout_M.out_N. This works only for a 16-bit fixed point representation of x and y.
This function implements the division like y*Inverse(x).