Lines Matching refs:q1
97 void inv_q_mult(const long *q1, const long *q2, long *qProd)
100 qProd[0] = (long)(((long long)q1[0] * q2[0] - (long long)q1[1] * q2[1] -
101 (long long)q1[2] * q2[2] -
102 (long long)q1[3] * q2[3]) >> 30);
104 (int)(((long long)q1[0] * q2[1] + (long long)q1[1] * q2[0] +
105 (long long)q1[2] * q2[3] - (long long)q1[3] * q2[2]) >> 30);
107 (long)(((long long)q1[0] * q2[2] - (long long)q1[1] * q2[3] +
108 (long long)q1[2] * q2[0] + (long long)q1[3] * q2[1]) >> 30);
110 (long)(((long long)q1[0] * q2[3] + (long long)q1[1] * q2[2] -
111 (long long)q1[2] * q2[1] + (long long)q1[3] * q2[0]) >> 30);
114 void inv_q_add(long *q1, long *q2, long *qSum)
117 qSum[0] = q1[0] + q2[0];
118 qSum[1] = q1[1] + q2[1];
119 qSum[2] = q1[2] + q2[2];
120 qSum[3] = q1[3] + q2[3];
153 void inv_q_multf(const float *q1, const float *q2, float *qProd)
156 qProd[0] = (q1[0] * q2[0] - q1[1] * q2[1] - q1[2] * q2[2] - q1[3] * q2[3]);
157 qProd[1] = (q1[0] * q2[1] + q1[1] * q2[0] + q1[2] * q2[3] - q1[3] * q2[2]);
158 qProd[2] = (q1[0] * q2[2] - q1[1] * q2[3] + q1[2] * q2[0] + q1[3] * q2[1]);
159 qProd[3] = (q1[0] * q2[3] + q1[1] * q2[2] - q1[2] * q2[1] + q1[3] * q2[0]);
162 void inv_q_addf(float *q1, float *q2, float *qSum)
165 qSum[0] = q1[0] + q2[0];
166 qSum[1] = q1[1] + q2[1];
167 qSum[2] = q1[2] + q2[2];
168 qSum[3] = q1[3] + q2[3];