/device/google/contexthub/firmware/inc/algos/ |
D | vec.h | 27 float x, y, z; member 31 float x, y, z, w; member 35 static inline void initVec3(struct Vec3 *v, float x, float y, float z) { in initVec3() argument 38 v->z = z; in initVec3() 44 v->z += w->z; in vec3Add() 50 v->z -= w->z; in vec3Sub() 56 v->z *= c; in vec3ScalarMul() 60 return v->x * w->x + v->y * w->y + v->z * w->z; in vec3Dot() 75 v->z *= invNorm; in vec3Normalize() 79 u->x = v->y * w->z - v->z * w->y; in vec3Cross() [all …]
|
D | mag_cal.h | 54 float x, float y, float z); 56 void magCalGetBias(struct MagCal *moc, float *x, float *y, float *z); 58 void magCalAddBias(struct MagCal *moc, float x, float y, float z);
|
/device/google/contexthub/lib/libm/ |
D | kf_cos.c | 38 float a,hz,z,r,qx; local 45 z = x*x; 46 r = z*(C1+z*(C2+z*(C3+z*(C4+z*(C5+z*C6))))); 48 return one - ((float)0.5*z - (z*r - x*y)); 55 hz = (float)0.5*z-qx; 57 return a - (hz - (z*r-x*y));
|
D | ef_rem_pio2.c | 105 float z,w,t,r,fn; local 116 z = x - pio2_1; 118 y[0] = z - pio2_1t; 119 y[1] = (z-y[0])-pio2_1t; 121 z -= pio2_2; 122 y[0] = z - pio2_2t; 123 y[1] = (z-y[0])-pio2_2t; 127 z = x + pio2_1; 129 y[0] = z + pio2_1t; 130 y[1] = (z-y[0])+pio2_1t; [all …]
|
D | kf_rem_pio2.c | 63 float z,fw,f[20],fq[20],q[20]; local 86 for(i=0,j=jz,z=q[jz];j>0;i++,j--) { 87 fw = (float)((__int32_t)(twon8* z)); 88 iq[i] = (__int32_t)(z-two8*fw); 89 z = q[j-1]+fw; 93 z = scalbnf(z,(int)q0); /* actual value of z */ 94 z -= (float)8.0*floorf(z*(float)0.125); /* trim off integer >= 8 */ 95 n = (__int32_t) z; 96 z -= (float)n; 104 else if(z>=(float)0.5) ih=2; [all …]
|
D | kf_sin.c | 38 float z,r,v; local 44 z = x*x; 45 v = z*x; 46 r = S2+z*(S3+z*(S4+z*(S5+z*S6))); 47 if(iy==0) return x+v*(S1+z*r); 48 else return x-((z*(half*y-v*r)-y)-v*S1);
|
D | ef_atan2.c | 38 float z; local 86 if(k > 60) z=pi_o_2+(float)0.5*pi_lo; /* |y/x| > 2**60 */ 87 else if(hx<0&&k<-60) z=0.0; /* |y|/x < -2**60 */ 88 else z=atanf(fabsf(y/x)); /* safe to do y/x */ 90 case 0: return z ; /* atan(+,+) */ 93 GET_FLOAT_WORD(zh,z); 94 SET_FLOAT_WORD(z,zh ^ 0x80000000); 96 return z ; /* atan(-,+) */ 97 case 2: return pi-(z-pi_lo);/* atan(+,-) */ 99 return (z-pi_lo)-pi;/* atan(-,-) */
|
D | sf_atan.c | 74 float w,s1,s2,z; local 105 z = x*x; 106 w = z*z; 108 s1 = z*(aT[0]+w*(aT[2]+w*(aT[4]+w*(aT[6]+w*(aT[8]+w*aT[10]))))); 112 z = atanhi[id] - ((x*(s1+s2) - atanlo[id]) - x); 113 return (hx<0)? -z:z;
|
D | fdlibm.h | 386 float complex z; member 391 double complex z; member 396 long double complex z; member 400 #define REAL_PART(z) ((z).parts[0]) argument 401 #define IMAG_PART(z) ((z).parts[1]) argument
|
/device/google/contexthub/firmware/src/algos/ |
D | vec.c | 23 float x, y, z; in findOrthogonalVector() local 29 z = -inY; in findOrthogonalVector() 33 z = -inX; in findOrthogonalVector() 37 z = 0.0f; in findOrthogonalVector() 40 float magSquared = x * x + y * y + z * z; in findOrthogonalVector() 45 *outZ = z * invMag; in findOrthogonalVector()
|
D | mag_cal.c | 52 evmax = (eigenvals.z > evmax) ? eigenvals.z : evmax; in moc_eigen_test() 55 evmin = (eigenvals.z < evmin) ? eigenvals.z : evmin; in moc_eigen_test() 57 float evmag = sqrtf(eigenvals.x + eigenvals.y + eigenvals.z); in moc_eigen_test() 96 initVec3(&v, out.x, out.y, out.z); in moc_fit() 101 initVec3(bias, v.x, v.y, v.z); in moc_fit() 165 float x, float y, float z) in magCalUpdate() argument 170 float w = x * x + y * y + z * z; in magCalUpdate() 174 moc->acc_z += z; in magCalUpdate() 179 moc->acc_xz += x * z; in magCalUpdate() 183 moc->acc_yz += y * z; in magCalUpdate() [all …]
|
D | quat.c | 31 q->z = sqrtf(clamp(-Hx - My + Az + 1.0f) * 0.25f); in initQuat() 35 q->z = copysignf(q->z, R->elem[0][1] - R->elem[1][0]); in initQuat() 42 float q3 = q->z; in quatToMatrix() 68 q->z = -q->z; in quatNormalize() 73 1.0f / sqrtf(q->x * q->x + q->y * q->y + q->z * q->z + q->w * q->w); in quatNormalize() 77 q->z *= invNorm; in quatNormalize()
|
D | fusion.c | 202 findOrthogonalVector(up.x, up.y, up.z, &east.x, &east.y, &east.z); in fusion_init_complete() 230 out->elem[1][0] = p->z; in matrixCross() 231 out->elem[0][1] = -p->z; in matrixCross() 308 O.elem[3][2] = -psi.z; in fusionPredict() 313 O.elem[2][3] = psi.z; in fusionPredict() 342 fusion->x0.z = -fusion->x0.z; in fusionPredict() 417 F[0].x = q->w; F[1].x = -q->z; F[2].x = q->y; in getF() 418 F[0].y = q->z; F[1].y = q->w; F[2].y = -q->x; in getF() 419 F[0].z = -q->y; F[1].z = q->x; F[2].z = q->w; in getF() 420 F[0].w = -q->x; F[1].w = -q->y; F[2].w = -q->z; in getF() [all …]
|
/device/google/contexthub/firmware/external/freebsd/lib/msun/src/ |
D | e_atan2f.c | 35 float z; in __ieee754_atan2f() local 84 z=pi_o_2+(float)0.5*pi_lo; in __ieee754_atan2f() 87 else if(k<-26&&hx<0) z=0.0; /* 0 > |y|/x > -2**-26 */ in __ieee754_atan2f() 88 else z=atanf(fabsf(y/x)); /* safe to do y/x */ in __ieee754_atan2f() 90 case 0: return z ; /* atan(+,+) */ in __ieee754_atan2f() 91 case 1: return -z ; /* atan(-,+) */ in __ieee754_atan2f() 92 case 2: return pi-(z-pi_lo);/* atan(+,-) */ in __ieee754_atan2f() 94 return (z-pi_lo)-pi;/* atan(-,-) */ in __ieee754_atan2f()
|
D | s_atanf.c | 51 float w,s1,s2,z; in atanf() local 82 z = x*x; in atanf() 83 w = z*z; in atanf() 85 s1 = z*(aT[0]+w*(aT[2]+w*aT[4])); in atanf() 89 z = atanhi[id] - ((x*(s1+s2) - atanlo[id]) - x); in atanf() 90 return (hx<0)? -z:z; in atanf()
|
D | math_private.h | 449 #define REALPART(z) ((z).a[0]) argument 450 #define IMAGPART(z) ((z).a[1]) argument 465 float_complex z; in cpackf() local 467 REALPART(z) = x; in cpackf() 468 IMAGPART(z) = y; in cpackf() 469 return (z.f); in cpackf() 475 double_complex z; in cpack() local 477 REALPART(z) = x; in cpack() 478 IMAGPART(z) = y; in cpack() 479 return (z.f); in cpack() [all …]
|
/device/google/contexthub/firmware/inc/variant/nucleo/ |
D | variant.h | 41 #define BMI160_TO_ANDROID_COORDINATE(x, y, z) \ argument 43 int32_t xi = x, yi = y, zi = z; \ 44 x = xi; y = yi; z = zi; \ 47 #define BMM150_TO_ANDROID_COORDINATE(x, y, z) \ argument 49 int32_t xi = x, yi = y, zi = z; \ 50 x = xi; y = -yi; z = -zi; \
|
/device/google/contexthub/firmware/inc/variant/lunchbox/ |
D | variant.h | 57 #define BMI160_TO_ANDROID_COORDINATE(x, y, z) \ argument 59 int32_t xi = x, yi = y, zi = z; \ 60 x = -yi; y = xi; z = zi; \ 63 #define BMM150_TO_ANDROID_COORDINATE(x, y, z) \ argument 65 int32_t xi = x, yi = y, zi = z; \ 66 x = xi; y = -yi; z = -zi; \
|
/device/google/dragon/audio/hal/dsp/ |
D | crossover.c | 62 float x, y, z; in lr4_split() local 65 z = lb0*y + lb1*ly1 + lb2*ly2 - la1*lz1 - la2*lz2; in lr4_split() 71 lz1 = z; in lr4_split() 72 data0[i] = z; in lr4_split() 75 z = hb0*y + hb1*hy1 + hb2*hy2 - ha1*hz1 - ha2*hz2; in lr4_split() 81 hz1 = z; in lr4_split() 82 data1[i] = z; in lr4_split() 135 float x, y, z; in lr4_merge() local 138 z = lb0*y + lb1*ly1 + lb2*ly2 - la1*lz1 - la2*lz2; in lr4_merge() 144 lz1 = z; in lr4_merge() [all …]
|
/device/google/contexthub/firmware/inc/ |
D | toolchain.h | 67 #define SET_EXTERNAL_APP_ATTRIBUTES(x, y, z) argument 69 #define SET_EXTERNAL_APP_VERSION(x, y, z) argument 105 #define SET_EXTERNAL_APP_ATTRIBUTES(x, y, z) __attribute__((x, y, z)) 107 #define SET_EXTERNAL_APP_VERSION(x, y, z) __attribute__((x, y, z))
|
/device/google/contexthub/firmware/src/drivers/window_orientation/ |
D | window_orientation.c | 333 float x, y, z, alpha, magnitude; in add_samples() local 348 z = ev->samples[i].z; in add_samples() 368 z = alpha * (z - last_sample->z) + last_sample->z; in add_samples() 380 mTask.last_filtered_sample.z = z; in add_samples() 389 magnitude = sqrtf(x * x + y * y + z * z); in add_samples() 407 tilt_tmp = (int)(asinf(z / magnitude) * RADIANS_TO_DEGREES); in add_samples()
|
/device/generic/goldfish/opengl/system/egl/ |
D | ClientAPIExts.in | 172 (GLshort x, GLshort y, GLshort z, GLshort width, GLshort height), 173 (x, y, z, width, height)) 176 (GLint x, GLint y, GLint z, GLint width, GLint height), 177 (x, y, z, width, height)) 180 (GLfloat x, GLfloat y, GLfloat z, GLfloat width, GLfloat height), 181 (x, y, z, width, height)) 184 (GLfixed x, GLfixed y, GLfixed z, GLfixed width, GLfixed height), 185 (x, y, z, width, height))
|
/device/google/contexthub/firmware/src/drivers/orientation/ |
D | orientation.c | 83 float x, y, z; member 236 mTask.samples[index][w].z = curr_sample->z + weight_next * in fillSamples() 237 (next_sample->z - curr_sample->z); in fillSamples() 283 static void addSample(struct FusionSensor *mSensor, uint64_t time, float x, float y, float z) in addSample() argument 306 sample->z = z; in addSample() 328 attitude.z); in updateOutput() 337 g.x, g.y, g.z); in updateOutput() 349 float z = asinf(R.elem[0][2]) * kRad2deg; in updateOutput() local 356 last_sensor_time, x, y, z); in updateOutput() 364 attitude.z); in updateOutput() [all …]
|
/device/google/contexthub/util/nanotool/ |
D | calibrationfile.cpp | 99 int32_t z) { in SetTripleAxis() argument 103 json_array->addInt32(z); in SetTripleAxis() 109 int32_t z, int32_t w) { in SetFourAxis() argument 113 json_array->addInt32(z); in SetFourAxis()
|
/device/google/contexthub/sensorhal/ |
D | hubconnection.cpp | 389 void HubConnection::magAccuracyUpdate(float x, float y, float z) in magAccuracyUpdate() argument 391 float magSq = x * x + y * y + z * z; in magAccuracyUpdate() 415 sv->z = sample->iz * ACCEL_RAW_KSCALE; in processSample() 441 sv->z = sample->z; in processSample() 449 sv->z = sample->z; in processSample() 459 ue->z_uncalib = sample->z + mGyroBias[2]; in processSample() 468 mGyroBias[2] = sample->z; in processSample() 471 magAccuracyUpdate(sample->x, sample->y, sample->z); in processSample() 477 sv->z = sample->z; in processSample() 487 ue->z_uncalib = sample->z + mMagBias[2]; in processSample() [all …]
|