Home
last modified time | relevance | path

Searched refs:k (Results 1 – 25 of 369) sorted by relevance

12345678910>>...15

/device/google/contexthub/firmware/os/algos/common/math/
Dmat.c40 static uint32_t mat33Maxind(const struct Mat33 *A, uint32_t k);
41 static void mat33Rotate(struct Mat33 *A, float c, float s, uint32_t k,
103 uint32_t k; in mat33Multiply() local
105 for (k = 0; k < 3; ++k) { in mat33Multiply()
106 sum += A->elem[i][k] * B->elem[k][j]; in mat33Multiply()
186 uint32_t k; in mat33MultiplyTransposed() local
188 for (k = 0; k < 3; ++k) { in mat33MultiplyTransposed()
189 sum += A->elem[k][i] * B->elem[k][j]; in mat33MultiplyTransposed()
209 uint32_t k; in mat33MultiplyTransposed2() local
211 for (k = 0; k < 3; ++k) { in mat33MultiplyTransposed2()
[all …]
/device/google/marlin/dataservices/datatop/src/
Ddatatop_str.c95 int i, j, k; in dt_parse_proc_dictionary() local
103 k = 0; in dt_parse_proc_dictionary()
104 for (i = 0; i < len1 && k < DTOP_DICT_SIZE; i++) { in dt_parse_proc_dictionary()
106 dict->key[k] = &line1[i+1]; in dt_parse_proc_dictionary()
108 k++; in dt_parse_proc_dictionary()
111 j = k; in dt_parse_proc_dictionary()
113 k = 0; in dt_parse_proc_dictionary()
114 for (i = 0; i < len2 && k < DTOP_DICT_SIZE; i++) { in dt_parse_proc_dictionary()
116 dict->val[k] = &line2[i+1]; in dt_parse_proc_dictionary()
118 k++; in dt_parse_proc_dictionary()
[all …]
/device/linaro/bootloader/edk2/BaseTools/Source/C/VfrCompile/Pccts/antlr/
Ddumpcycles.c20 int k; in dumpcycles() local
23 for (k=1; k <= CLL_k; k++) { in dumpcycles()
24 if (Cycles[k] == NULL) continue; in dumpcycles()
26 for (p = Cycles[k]->next; p!=NULL; p=p->next) { in dumpcycles()
34 hash_get(Fcache,Fkey(RulePtr[c->croot]->rname,'o',k)); in dumpcycles()
45 dumpfostack(int k) in dumpfostack() argument
47 dumpfostack(k) in dumpfostack()
48 int k; in dumpfostack()
55 if (FoStack[k] == NULL) {
56 fprintf(stderr,"FoStack[%d] is null\n",k);
[all …]
/device/linaro/bootloader/edk2/StdLib/LibC/gdtoa/
Dmisc.c54 (k) int k; in Balloc() argument
56 (int k)
66 if ( (rv = freelist[k]) !=0) {
67 freelist[k] = rv->next;
70 x = 1 << k;
85 rv->k = k;
103 v->next = freelist[v->k];
104 freelist[v->k] = v;
117 int k; local
130 k = 0;
[all …]
Dsmisc.c51 int i, k; local
55 for(k = 0, y = 1; x > y; y <<= 1, k++) ;
57 b = Balloc(k);
63 b = Balloc(k+1);
99 int k, ka, kb; local
103 k = ka - kb + ULbits*(a->wds - b->wds);
105 if (k > 0) {
106 word0(da) += (k >> 2)*Exp_msk1;
107 if (k &= 3)
108 dval(da) *= 1 << k;
[all …]
Dgethex.c46 int esign, havedig, irv, k, n, nbits, up, zret; in gethex() local
117 for(k = 0; n > 7; n = (unsigned int)n >> 1) in gethex()
118 k++; in gethex()
119 b = Balloc(k); in gethex()
146 k = n - 1; in gethex()
147 if (x[(unsigned int)k>>kshift] & 1 << (k & kmask)) { in gethex()
149 if (k > 1 && any_on(b,k-1)) in gethex()
198 k = n - 1; in gethex()
201 else if (k > 0) in gethex()
202 lostbits = any_on(b,k); in gethex()
[all …]
/device/linaro/bootloader/arm-trusted-firmware/tools/cert_create/src/
Dkey.c54 EVP_PKEY *k = NULL; in key_new() local
57 k = EVP_PKEY_new(); in key_new()
58 if (k == NULL) { in key_new()
64 if (EVP_PKEY_assign_RSA(k, rsa)) { in key_new()
65 key->key = k; in key_new()
71 if (k) in key_new()
72 EVP_PKEY_free(k); in key_new()
79 EVP_PKEY *k = NULL; in key_load() local
82 k = EVP_PKEY_new(); in key_load()
83 if (k == NULL) { in key_load()
[all …]
/device/linaro/bootloader/edk2/StdLib/LibC/Math/
Ds_scalbn.c37 int32_t k,hx,lx; in scalbn() local
39 k = (hx&0x7ff00000)>>20; /* extract exponent */ in scalbn()
40 if (k==0) { /* 0 or subnormal x */ in scalbn()
44 k = ((hx&0x7ff00000)>>20) - 54; in scalbn()
47 if (k==0x7ff) return x+x; /* NaN or Inf */ in scalbn()
48 k = k+n; in scalbn()
49 if (k > 0x7fe) return huge*copysign(huge,x); /* overflow */ in scalbn()
50 if (k > 0) /* normal result */ in scalbn()
51 {SET_HIGH_WORD(x,(hx&0x800fffff)|(k<<20)); return x;} in scalbn()
52 if (k <= -54) { in scalbn()
[all …]
Ds_expm1.c140 int32_t k,xsb; in expm1() local
171 {hi = x - ln2_hi; lo = ln2_lo; k = 1;} in expm1()
173 {hi = x + ln2_hi; lo = -ln2_lo; k = -1;} in expm1()
175 k = (int32_t)(invln2*x+((xsb==0)?0.5:-0.5)); in expm1()
176 t = k; in expm1()
187 else k = 0; in expm1()
195 if(k==0) return x - (x*e-hxs); /* c is 0 */ in expm1()
199 if(k== -1) return 0.5*(x-e)-0.5; in expm1()
200 if(k==1) { in expm1()
204 if (k <= -2 || k>56) { /* suffice to return exp(x)-1 */ in expm1()
[all …]
De_log.c106 int32_t k,hx,i,j; in __ieee754_log() local
111 k=0; in __ieee754_log()
119 k -= 54; x *= two54; /* subnormal number, scale up x */ in __ieee754_log()
123 k += (hx>>20)-1023; in __ieee754_log()
127 k += (i>>20); in __ieee754_log()
130 if(f==zero) { if(k==0) return zero; else {dk=(double)k; in __ieee754_log()
134 if(k==0) return f-R; else {dk=(double)k; in __ieee754_log()
138 dk = (double)k; in __ieee754_log()
149 if(k==0) return f-(hfsq-s*(hfsq+R)); else in __ieee754_log()
152 if(k==0) return f-s*(f-R); else in __ieee754_log()
De_exp.c112 int32_t k,xsb; in __ieee754_exp() local
116 k = 0; in __ieee754_exp()
137 hi = x-ln2HI[xsb]; lo=ln2LO[xsb]; k = 1-xsb-xsb; in __ieee754_exp()
139 k = (int32_t)(invln2*x+halF[xsb]); in __ieee754_exp()
140 t = k; in __ieee754_exp()
149 else k = 0; in __ieee754_exp()
154 if(k==0) return one-((x*c)/(c-2.0)-x); in __ieee754_exp()
156 if(k >= -1021) { in __ieee754_exp()
159 SET_HIGH_WORD(y,hy+(k<<20)); /* add k to y's exponent */ in __ieee754_exp()
164 SET_HIGH_WORD(y,hy+((k+1000)<<20)); /* add k to y's exponent */ in __ieee754_exp()
De_pow.c122 int32_t i,j,k,yisint,n; in __ieee754_pow() local
147 k = (iy>>20)-0x3ff; /* exponent */ in __ieee754_pow()
148 if(k>20) { in __ieee754_pow()
149 j = ly>>(52-k); in __ieee754_pow()
150 if((u_int32_t)(j<<(52-k))==ly) yisint = 2-(j&1); in __ieee754_pow()
152 j = iy>>(20-k); in __ieee754_pow()
153 if((j<<(20-k))==iy) yisint = 2-(j&1); in __ieee754_pow()
233 if(j<=0x3988E) k=0; /* |x|<sqrt(3/2) */ in __ieee754_pow()
234 else if(j<0xBB67A) k=1; /* |x|<sqrt(3) */ in __ieee754_pow()
235 else {k=0;n+=1;ix -= 0x00100000;} in __ieee754_pow()
[all …]
/device/google/contexthub/lib/nanohub/
Daes.c155 void aesInitForEncr(struct AesContext *ctx, const uint32_t *k) in aesInitForEncr() argument
160 memcpy(ctx->K, k, sizeof(uint32_t[AES_KEY_WORDS])); in aesInitForEncr()
183 … aesInitForDecr(struct AesContext *ctx, struct AesSetupTempWorksSpace *tmpSpace, const uint32_t *k) in aesInitForDecr() argument
188 aesInitForEncr(&tmpSpace->tmpCtx, k); in aesInitForDecr()
207 uint32_t *k = ctx->K, i; in aesEncr() local
210 x0 = *src++ ^ *k++; in aesEncr()
211 x1 = *src++ ^ *k++; in aesEncr()
212 x2 = *src++ ^ *k++; in aesEncr()
213 x3 = *src++ ^ *k++; in aesEncr()
219 t0 = *k++ ^ in aesEncr()
[all …]
/device/google/contexthub/firmware/lib/libm/
Dsf_scalbn.c43 __int32_t k,ix; local
48 k = hx>>23; /* extract exponent */
56 k = ((ix&0x7f800000)>>23) - 25;
59 k = k+n;
60 if (k > FLT_LARGEST_EXP) return huge*copysignf(huge,x); /* overflow */
61 if (k > 0) /* normal result */
62 {SET_FLOAT_WORD(x,(ix&0x807fffff)|(k<<23)); return x;}
63 if (k < FLT_SMALLEST_EXP) {
68 k += 25; /* subnormal result */
69 SET_FLOAT_WORD(x,(ix&0x807fffff)|(k<<23));
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Parser/
Dacceler.c67 int k; in fixstate() local
76 for (k = 0; k < nl; k++) in fixstate()
77 accel[k] = -1; in fixstate()
79 for (k = s->s_narcs; --k >= 0; a++) { in fixstate()
110 for (k = 0; k < nl && accel[k] == -1;) in fixstate()
111 k++; in fixstate()
112 if (k < nl) { in fixstate()
114 s->s_accel = (int *) PyObject_MALLOC((nl-k) * sizeof(int)); in fixstate()
119 s->s_lower = k; in fixstate()
121 for (i = 0; k < nl; i++, k++) in fixstate()
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Parser/
Dacceler.c67 int k; in fixstate() local
76 for (k = 0; k < nl; k++) in fixstate()
77 accel[k] = -1; in fixstate()
79 for (k = s->s_narcs; --k >= 0; a++) { in fixstate()
110 for (k = 0; k < nl && accel[k] == -1;) in fixstate()
111 k++; in fixstate()
112 if (k < nl) { in fixstate()
114 s->s_accel = (int *) PyObject_MALLOC((nl-k) * sizeof(int)); in fixstate()
119 s->s_lower = k; in fixstate()
121 for (i = 0; k < nl; i++, k++) in fixstate()
[all …]
/device/google/contexthub/firmware/external/freebsd/lib/msun/src/
De_expf.c49 int32_t k=0,xsb; in __ieee754_expf() local
69 hi = x-ln2HI[xsb]; lo=ln2LO[xsb]; k = 1-xsb-xsb; in __ieee754_expf()
71 k = invln2*x+halF[xsb]; in __ieee754_expf()
72 t = k; in __ieee754_expf()
81 else k = 0; in __ieee754_expf()
85 if(k >= -125) in __ieee754_expf()
86 SET_FLOAT_WORD(twopk,0x3f800000+(k<<23)); in __ieee754_expf()
88 SET_FLOAT_WORD(twopk,0x3f800000+((k+100)<<23)); in __ieee754_expf()
90 if(k==0) return one-((x*c)/(c-(float)2.0)-x); in __ieee754_expf()
92 if(k >= -125) { in __ieee754_expf()
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Tools/i18n/
Dmakelocalealias.py51 for k,v in items:
52 print ' %-40s%r,' % ('%r:' % k, v)
58 for k, v in items:
59 if not data.has_key(k):
60 print '# removed %r' % k
61 elif olddata[k] != data[k]:
63 (k, olddata[k], data[k])
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/
Dtest_bsddb.py23 for k, v in self.d.iteritems():
24 self.f[k] = v
37 for k, v in self.d.iteritems():
38 self.assertEqual(self.f[k], v)
56 for k, v in self.d.iteritems():
57 self.assertEqual(self.f[k], v)
144 k, v = di.next()
145 self.d[k] = 'modified '+v
156 k, v = fi.next()
157 self.f[k] = 'modified '+v
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Lib/
DHTMLParser.py161 k = self.parse_starttag(i)
163 k = self.parse_endtag(i)
165 k = self.parse_comment(i)
167 k = self.parse_pi(i)
169 k = self.parse_html_declaration(i)
172 k = i + 1
175 if k < 0:
178 k = rawdata.find('>', i + 1)
179 if k < 0:
180 k = rawdata.find('<', i + 1)
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/
DHTMLParser.py148 k = self.parse_starttag(i)
150 k = self.parse_endtag(i)
152 k = self.parse_comment(i)
154 k = self.parse_pi(i)
156 k = self.parse_declaration(i)
159 k = i + 1
162 if k < 0:
166 i = self.updatepos(i, k)
172 k = match.end()
173 if not startswith(';', k-1):
[all …]
D_LWPCookieJar.py42 for k in keys:
43 h.append((k, str(cookie._rest[k])))
122 for k in boolean_attrs:
123 standard[k] = False
124 for k, v in data[1:]:
125 if k is not None:
126 lc = k.lower()
131 k = lc
132 if k in boolean_attrs:
134 standard[k] = v
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Python/
Ddtoa.c322 int k, maxwds, sign, wds; member
354 Balloc(int k) in Balloc() argument
360 if (k <= Kmax && (rv = freelist[k])) in Balloc()
361 freelist[k] = rv->next; in Balloc()
363 x = 1 << k; in Balloc()
366 if (k <= Kmax && pmem_next - private_mem + len <= PRIVATE_mem) { in Balloc()
375 rv->k = k; in Balloc()
388 if (v->k > Kmax) in Bfree()
391 v->next = freelist[v->k]; in Bfree()
392 freelist[v->k] = v; in Bfree()
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Python/
Ddtoa.c305 int k, maxwds, sign, wds; member
337 Balloc(int k) in Balloc() argument
343 if (k <= Kmax && (rv = freelist[k])) in Balloc()
344 freelist[k] = rv->next; in Balloc()
346 x = 1 << k; in Balloc()
349 if (k <= Kmax && pmem_next - private_mem + len <= PRIVATE_mem) { in Balloc()
358 rv->k = k; in Balloc()
371 if (v->k > Kmax) in Bfree()
374 v->next = freelist[v->k]; in Bfree()
375 freelist[v->k] = v; in Bfree()
[all …]
/device/google/dragon/audio/hal/dsp/
Dbiquad.c125 double k = cos(w0); in biquad_bandpass() local
131 double a1 = -2 * k; in biquad_bandpass()
168 double k = cos(w0); in biquad_lowshelf() local
173 double b0 = A * (a_plus_one - a_minus_one * k + k2); in biquad_lowshelf()
174 double b1 = 2 * A * (a_minus_one - a_plus_one * k); in biquad_lowshelf()
175 double b2 = A * (a_plus_one - a_minus_one * k - k2); in biquad_lowshelf()
176 double a0 = a_plus_one + a_minus_one * k + k2; in biquad_lowshelf()
177 double a1 = -2 * (a_minus_one + a_plus_one * k); in biquad_lowshelf()
178 double a2 = a_plus_one + a_minus_one * k - k2; in biquad_lowshelf()
203 double k = cos(w0); in biquad_highshelf() local
[all …]

12345678910>>...15