Home
last modified time | relevance | path

Searched refs:qProd (Results 1 – 2 of 2) sorted by relevance

/hardware/invensense/mlsdk/mllite/
DmlMathFunc.c97 void inv_q_mult(const long *q1, const long *q2, long *qProd) in inv_q_mult() argument
100 qProd[0] = (long)(((long long)q1[0] * q2[0] - (long long)q1[1] * q2[1] - in inv_q_mult()
103 qProd[1] = in inv_q_mult()
106 qProd[2] = in inv_q_mult()
109 qProd[3] = in inv_q_mult()
153 void inv_q_multf(const float *q1, const float *q2, float *qProd) in inv_q_multf() argument
156 qProd[0] = (q1[0] * q2[0] - q1[1] * q2[1] - q1[2] * q2[2] - q1[3] * q2[3]); in inv_q_multf()
157 qProd[1] = (q1[0] * q2[1] + q1[1] * q2[0] + q1[2] * q2[3] - q1[3] * q2[2]); in inv_q_multf()
158 qProd[2] = (q1[0] * q2[2] - q1[1] * q2[3] + q1[2] * q2[0] + q1[3] * q2[1]); in inv_q_multf()
159 qProd[3] = (q1[0] * q2[3] + q1[1] * q2[2] - q1[2] * q2[1] + q1[3] * q2[0]); in inv_q_multf()
DmlMathFunc.h45 void inv_q_mult(const long *q1, const long *q2, long *qProd);
49 void inv_q_multf(const float *q1, const float *q2, float *qProd);