This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

IWR6843ISK: What does cmn_DIVDP do?

Part Number: IWR6843ISK
Other Parts Discussed in Thread: MATHLIB

Hi,

In my understanding, "cmn_DIVDP"(in mathlib_c674_3_1_2_1/packages/ti/mathlib/src/common/c674/common.h)  divides a by b.

So, what is the defference between "cmn_DIVDP(a, b)" and "a / b"? 

#define cmn_DIVDP(a,b) {  \
  double  TWO = 2.0;      \
  double  X;              \
  X = _rcpdp((b));        \
  X = X*(TWO - (b)*X);    \
  X = X*(TWO - (b)*X);    \
  X = X*(TWO - (b)*X);    \
  X = (a)*X;              \
  return (X);             \
}

Best regards.