Home
last modified time | relevance | path

Searched refs:q (Results 1 – 25 of 173) sorted by relevance

1234567

/device/google/contexthub/firmware/os/algos/common/math/
Dquat.c21 void initQuat(Quat *q, const struct Mat33 *R) { in initQuat() argument
26 q->x = sqrtf(clamp(Hx - My - Az + 1.0f) * 0.25f); in initQuat()
27 q->y = sqrtf(clamp(-Hx + My - Az + 1.0f) * 0.25f); in initQuat()
28 q->z = sqrtf(clamp(-Hx - My + Az + 1.0f) * 0.25f); in initQuat()
29 q->w = sqrtf(clamp(Hx + My + Az + 1.0f) * 0.25f); in initQuat()
30 q->x = copysignf(q->x, R->elem[1][2] - R->elem[2][1]); in initQuat()
31 q->y = copysignf(q->y, R->elem[2][0] - R->elem[0][2]); in initQuat()
32 q->z = copysignf(q->z, R->elem[0][1] - R->elem[1][0]); in initQuat()
35 void quatToMatrix(struct Mat33 *R, const Quat *q) { in quatToMatrix() argument
36 float q0 = q->w; in quatToMatrix()
[all …]
Dquat.h28 void initQuat(Quat *q, const struct Mat33 *R);
29 void quatToMatrix(struct Mat33 *R, const Quat *q);
30 void quatNormalize(Quat *q);
/device/google/contexthub/firmware/os/core/
DeventQ.c65 struct EvtQueue *q = heapAlloc(sizeof(struct EvtQueue)); in evtQueueAlloc() local
69 if (q && slab) { in evtQueueAlloc()
70 q->forceDiscardCbk = forceDiscardCbk; in evtQueueAlloc()
71 q->evtsSlab = slab; in evtQueueAlloc()
72 q->head.next = &q->head; in evtQueueAlloc()
73 q->head.prev = &q->head; in evtQueueAlloc()
74 return q; in evtQueueAlloc()
77 if (q) in evtQueueAlloc()
78 heapFree(q); in evtQueueAlloc()
85 void evtQueueFree(struct EvtQueue* q) in evtQueueFree() argument
[all …]
/device/google/contexthub/firmware/lib/builtins/
Dudivmoddi4.c32 udwords q; in __udivmoddi4() local
113 q.s.low = 0; in __udivmoddi4()
114 q.s.high = n.s.low << (n_uword_bits - sr); in __udivmoddi4()
134 q.s.high = n.s.high >> sr; in __udivmoddi4()
135 q.s.low = (n.s.high << (n_uword_bits - sr)) | (n.s.low >> sr); in __udivmoddi4()
136 return q.all; in __udivmoddi4()
149 q.s.low = 0; in __udivmoddi4()
150 q.s.high = n.s.low; in __udivmoddi4()
156 q.s.low = 0; in __udivmoddi4()
157 q.s.high = n.s.low << (n_uword_bits - sr); in __udivmoddi4()
[all …]
/device/google/contexthub/firmware/os/algos/
Dfusion.c264 Quat q = fusion->x0; in fusionPredict() local
344 mat44Apply(&fusion->x0, &O, &q); in fusionPredict()
423 static void getF(struct Vec4 F[3], const struct Vec4 *q) { in getF() argument
424 F[0].x = q->w; F[1].x = -q->z; F[2].x = q->y; in getF()
425 F[0].y = q->z; F[1].y = q->w; F[2].y = -q->x; in getF()
426 F[0].z = -q->y; F[1].z = q->x; F[2].z = q->w; in getF()
427 F[0].w = -q->x; F[1].w = -q->y; F[2].w = -q->z; in getF()
489 struct Vec4 q; in fusionUpdate() local
490 q.x = fusion->x0.x + 0.5f * (F[0].x * dq.x + F[1].x * dq.y + F[2].x * dq.z); in fusionUpdate()
491 q.y = fusion->x0.y + 0.5f * (F[0].y * dq.x + F[1].y * dq.y + F[2].y * dq.z); in fusionUpdate()
[all …]
/device/google/contexthub/firmware/lib/libm/
Def_asin.c47 float t,w,p,q,c,r,s; local
62 q = one+t*(qS1+t*(qS2+t*(qS3+t*qS4)));
63 w = p/q;
71 q = one+t*(qS1+t*(qS2+t*(qS3+t*qS4)));
74 w = p/q;
82 r = p/q;
84 q = pio4_hi-(float)2.0*w;
85 t = pio4_hi-(p-q);
Def_sqrt.c33 __int32_t ix,s,q,m,t,i; local
60 q = s = 0; /* q = sqrt(x) */
68 q += r;
80 q += 2;
82 q += (q&1);
85 ix = (q>>1)+0x3f000000L;
Dkf_rem_pio2.c63 float z,fw,f[20],fq[20],q[20]; local
81 q[i] = fw;
87 for(i=0,j=jz,z=q[jz];j>0;i++,j--) {
90 z = q[j-1]+fw;
141 q[i] = fw;
165 q[i] = fw*(float)iq[i]; fw*=twon8;
170 for(fw=0.0,k=0;k<=jp&&k<=jz-i;k++) fw += PIo2[k]*q[i+k];
/device/google/cuttlefish/tools/
Dcreate_base_image.go260 gce(WarnOnFail, `compute instances delete -q `+PZ+` `+delete_instances, `Not running`)
261 gce(WarnOnFail, `compute disks delete -q `+PZ+` "`+dest_image+`"`, `No scratch disk`)
262 gce(WarnOnFail, `compute images delete -q --project="`+build_project+`" "`+dest_image+`"`,
334 gce(WarnOnFail, `compute instances delete -q `+PZ+` `+delete_instances,
336 gce(WarnOnFail, `compute disks delete -q `+PZ+` "`+dest_image+
338 gce(WarnOnFail, `compute images delete -q --project="`+build_project+
385 gce(ExitOnFail, `compute instances delete -q `+PZ+` "`+build_instance+`"`)
390 gce(ExitOnFail, `compute disks delete -q `+PZ+` "`+dest_image+`"`)
/device/google/contexthub/firmware/os/inc/
DeventQ.h36 void evtQueueFree(struct EvtQueue* q);
37 bool evtQueueEnqueue(struct EvtQueue* q, uint32_t evtType, void *evtData, TaggedPtr evtFreeData, bo…
38 bool evtQueueDequeue(struct EvtQueue* q, uint32_t *evtTypeP, void **evtDataP, TaggedPtr *evtFreeDat…
39 void evtQueueRemoveAllMatching(struct EvtQueue* q, bool (*match)(uint32_t evtType, const void *dat…
/device/google/redbull/json-c/
Djson_object.c597 char buf[128], *p, *q; in json_object_double_to_json_string() local
622 for (q=p ; *q ; q++) { in json_object_double_to_json_string()
623 if (*q!='0') p=q; in json_object_double_to_json_string()
/device/google/coral/json-c/
Djson_object.c597 char buf[128], *p, *q; in json_object_double_to_json_string() local
622 for (q=p ; *q ; q++) { in json_object_double_to_json_string()
623 if (*q!='0') p=q; in json_object_double_to_json_string()
/device/google/sunfish/json-c/
Djson_object.c597 char buf[128], *p, *q; in json_object_double_to_json_string() local
622 for (q=p ; *q ; q++) { in json_object_double_to_json_string()
623 if (*q!='0') p=q; in json_object_double_to_json_string()
/device/google/comet-kernels/6.1/.prebuilt_info/kernel-and-modules/
Dprebuilt_info_24Q3-12157876_8021q_ko.asciipb5 source_file: "8021q.ko"
7 dest_file: "24Q3-12157876/8021q.ko"
Dprebuilt_info_24Q3-12157876_kasan_8021q_ko.asciipb5 source_file: "8021q.ko"
7 dest_file: "24Q3-12157876/kasan/8021q.ko"
Dprebuilt_info_24Q3-12157876_debug_locking_8021q_ko.asciipb5 source_file: "8021q.ko"
7 dest_file: "24Q3-12157876/debug_locking/8021q.ko"
Dprebuilt_info_24Q3-12157876_debug_memory_8021q_ko.asciipb5 source_file: "8021q.ko"
7 dest_file: "24Q3-12157876/debug_memory/8021q.ko"
Dprebuilt_info_24Q3-12157876_debug_memory_accounting_8021q_ko.asciipb5 source_file: "8021q.ko"
7 dest_file: "24Q3-12157876/debug_memory_accounting/8021q.ko"
Dprebuilt_info_24Q3-12157876_debug_kmemleak_8021q_ko.asciipb5 source_file: "8021q.ko"
7 dest_file: "24Q3-12157876/debug_kmemleak/8021q.ko"
/device/google/caimito-kernels/6.1/.prebuilt_info/kernel-and-modules/
Dprebuilt_info_24Q3-12157876_8021q_ko.asciipb5 source_file: "8021q.ko"
7 dest_file: "24Q3-12157876/8021q.ko"
Dprebuilt_info_24Q3-12157876_debug_kmemleak_8021q_ko.asciipb5 source_file: "8021q.ko"
7 dest_file: "24Q3-12157876/debug_kmemleak/8021q.ko"
Dprebuilt_info_24Q3-12157876_debug_api_8021q_ko.asciipb5 source_file: "8021q.ko"
7 dest_file: "24Q3-12157876/debug_api/8021q.ko"
Dprebuilt_info_24Q3-12157876_kasan_8021q_ko.asciipb5 source_file: "8021q.ko"
7 dest_file: "24Q3-12157876/kasan/8021q.ko"
Dprebuilt_info_24Q3-12157876_debug_locking_8021q_ko.asciipb5 source_file: "8021q.ko"
7 dest_file: "24Q3-12157876/debug_locking/8021q.ko"
Dprebuilt_info_24Q3-12157876_debug_memory_accounting_8021q_ko.asciipb5 source_file: "8021q.ko"
7 dest_file: "24Q3-12157876/debug_memory_accounting/8021q.ko"

1234567