Home
last modified time | relevance | path

Searched refs:q0 (Results 1 – 3 of 3) sorted by relevance

/device/google/contexthub/lib/libm/
Dkf_rem_pio2.c62 __int32_t jz,jx,jv,jp,jk,carry,n,iq[20],i,j,k,m,q0,ih; local
72 q0 = e0-8*(jv+1);
93 z = scalbnf(z,(int)q0); /* actual value of z */
98 if(q0>0) { /* need iq[jz-1] to determine n */
99 i = (iq[jz-1]>>(8-q0)); n += i;
100 iq[jz-1] -= i<<(8-q0);
101 ih = iq[jz-1]>>(7-q0);
103 else if(q0==0) ih = iq[jz-1]>>8;
116 if(q0>0) { /* rare case: chance is 1 in 12 */
117 switch(q0) {
[all …]
/device/google/contexthub/firmware/src/algos/
Dquat.c39 float q0 = q->w; in quatToMatrix() local
47 float q3_q0 = 2.0f * q3 * q0; in quatToMatrix()
49 float q2_q0 = 2.0f * q2 * q0; in quatToMatrix()
51 float q1_q0 = 2.0f * q1 * q0; in quatToMatrix()
/device/htc/flounder/sensor_hub/libsensors/
DCwMcuSensor.cpp1035 float q0, q1, q2, q3; in calculate_rv_4th_element() local
1041 q0 = 1 - q1*q1 - q2*q2 - q3*q3; in calculate_rv_4th_element()
1042 q0 = (q0 > 0) ? (float)sqrt(q0) : 0; in calculate_rv_4th_element()
1044 mPendingEvents[sensors_id].data[3] = q0; in calculate_rv_4th_element()