Home
last modified time | relevance | path

Searched refs:q1 (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()
101 (long long)q1[2] * q2[2] - in inv_q_mult()
102 (long long)q1[3] * q2[3]) >> 30); in inv_q_mult()
104 (int)(((long long)q1[0] * q2[1] + (long long)q1[1] * q2[0] + in inv_q_mult()
105 (long long)q1[2] * q2[3] - (long long)q1[3] * q2[2]) >> 30); in inv_q_mult()
107 (long)(((long long)q1[0] * q2[2] - (long long)q1[1] * q2[3] + in inv_q_mult()
108 (long long)q1[2] * q2[0] + (long long)q1[3] * q2[1]) >> 30); in inv_q_mult()
110 (long)(((long long)q1[0] * q2[3] + (long long)q1[1] * q2[2] - in inv_q_mult()
111 (long long)q1[2] * q2[1] + (long long)q1[3] * q2[0]) >> 30); in inv_q_mult()
[all …]
DmlMathFunc.h45 void inv_q_mult(const long *q1, const long *q2, long *qProd);
46 void inv_q_add(long *q1, long *q2, long *qSum);
49 void inv_q_multf(const float *q1, const float *q2, float *qProd);
50 void inv_q_addf(float *q1, float *q2, float *qSum);