/packages/modules/Bluetooth/system/embdrv/lc3/src/ |
D | tns.c | 98 for (int k = 0; k < 9; k++) in compute_lpc_coeffs() local 99 c[k][s] = dot(xs, xs + k, (xe - xs) - k); in compute_lpc_coeffs() 105 for (int k = 1; k < 9; k++) in compute_lpc_coeffs() local 106 r[f][k] = e0 == 0 || e1 == 0 || e2 == 0 ? 0 : in compute_lpc_coeffs() 107 (c[k][0]/e0 + c[k][1]/e1 + c[k][2]/e2) * lag_window[k]; in compute_lpc_coeffs() 119 for (int k = 1; k < 9; ) { in compute_lpc_coeffs() local 121 rc = -r[f][k]; in compute_lpc_coeffs() 122 for (int i = 1; i < k; i++) in compute_lpc_coeffs() 123 rc -= a0[i] * r[f][k-i]; in compute_lpc_coeffs() 128 for (int i = 1; i < k; i++) in compute_lpc_coeffs() [all …]
|
D | spec.c | 323 int k = 0; in compute_nbits() local 329 nbits += lc3_spectrum_bits[lut[k++]][16] - 2*2048; in compute_nbits() 333 for (m >>= lsb_mode; m; m >>= 1, k++) in compute_nbits() 334 nbits += lc3_spectrum_bits[lut[LC3_MIN(k, 3)]][16]; in compute_nbits() 336 nbits += k * 2*2048; in compute_nbits() 337 a >>= k; in compute_nbits() 338 b >>= k; in compute_nbits() 340 k = LC3_MIN(k, 3); in compute_nbits() 345 nbits += lc3_spectrum_bits[lut[k]][a + 4*b]; in compute_nbits() 354 state = (state << 4) + (k > 1 ? 12 + k : 1 + (a + b) * (k + 1)); in compute_nbits() [all …]
|
D | ltpf.c | 195 for (int k = 0; k < w; k += 10) { in resample_x64k_12k8() local 239 for (int k = 0; k < w; k += 15) { in resample_x192k_12k8() local 720 for (int k = 0; k <= j; k++) in synthesize_template() local 721 u[j-k] -= yi * c[k]; in synthesize_template() 723 for (int k = 0; k <= j; k++) in synthesize_template() local 724 u[j-k] += xi * c[w+k]; in synthesize_template() 737 for (int k = 0; k < w; k++) in synthesize_template() local 738 u[(j+(w-1)-k)%w] -= yi * c[k]; in synthesize_template() 740 for (int k = 0; k < w; k++) in synthesize_template() local 741 u[(j+(w-1)-k)%w] += xi * c[w+k]; in synthesize_template()
|
/packages/modules/Bluetooth/system/stack/crypto_toolbox/ |
D | aes.cc | 383 static void copy_and_key(void* d, const void* s, const void* k) { in copy_and_key() argument 385 ((uint_32t*)d)[0] = ((uint_32t*)s)[0] ^ ((uint_32t*)k)[0]; in copy_and_key() 386 ((uint_32t*)d)[1] = ((uint_32t*)s)[1] ^ ((uint_32t*)k)[1]; in copy_and_key() 387 ((uint_32t*)d)[2] = ((uint_32t*)s)[2] ^ ((uint_32t*)k)[2]; in copy_and_key() 388 ((uint_32t*)d)[3] = ((uint_32t*)s)[3] ^ ((uint_32t*)k)[3]; in copy_and_key() 390 ((uint_8t*)d)[0] = ((uint_8t*)s)[0] ^ ((uint_8t*)k)[0]; in copy_and_key() 391 ((uint_8t*)d)[1] = ((uint_8t*)s)[1] ^ ((uint_8t*)k)[1]; in copy_and_key() 392 ((uint_8t*)d)[2] = ((uint_8t*)s)[2] ^ ((uint_8t*)k)[2]; in copy_and_key() 393 ((uint_8t*)d)[3] = ((uint_8t*)s)[3] ^ ((uint_8t*)k)[3]; in copy_and_key() 394 ((uint_8t*)d)[4] = ((uint_8t*)s)[4] ^ ((uint_8t*)k)[4]; in copy_and_key() [all …]
|
/packages/modules/Bluetooth/system/gd/crypto_toolbox/ |
D | aes.cc | 334 static void copy_and_key(void* d, const void* s, const void* k) { in copy_and_key() argument 336 ((uint_32t*)d)[0] = ((uint_32t*)s)[0] ^ ((uint_32t*)k)[0]; in copy_and_key() 337 ((uint_32t*)d)[1] = ((uint_32t*)s)[1] ^ ((uint_32t*)k)[1]; in copy_and_key() 338 ((uint_32t*)d)[2] = ((uint_32t*)s)[2] ^ ((uint_32t*)k)[2]; in copy_and_key() 339 ((uint_32t*)d)[3] = ((uint_32t*)s)[3] ^ ((uint_32t*)k)[3]; in copy_and_key() 341 ((uint_8t*)d)[0] = ((uint_8t*)s)[0] ^ ((uint_8t*)k)[0]; in copy_and_key() 342 ((uint_8t*)d)[1] = ((uint_8t*)s)[1] ^ ((uint_8t*)k)[1]; in copy_and_key() 343 ((uint_8t*)d)[2] = ((uint_8t*)s)[2] ^ ((uint_8t*)k)[2]; in copy_and_key() 344 ((uint_8t*)d)[3] = ((uint_8t*)s)[3] ^ ((uint_8t*)k)[3]; in copy_and_key() 345 ((uint_8t*)d)[4] = ((uint_8t*)s)[4] ^ ((uint_8t*)k)[4]; in copy_and_key() [all …]
|
D | crypto_toolbox_test.cc | 32 …uint8_t k[] = {0x2b, 0x7e, 0x15, 0x16, 0x28, 0xae, 0xd2, 0xa6, 0xab, 0xf7, 0x15, 0x88, 0x09, 0xcf,… in TEST() local 41 aes_set_key(k, sizeof(k), &ctx); in TEST() 54 …Octet16 k{0x2b, 0x7e, 0x15, 0x16, 0x28, 0xae, 0xd2, 0xa6, 0xab, 0xf7, 0x15, 0x88, 0x09, 0xcf, 0x4f… in TEST() local 59 std::reverse(std::begin(k), std::end(k)); in TEST() 62 Octet16 output = aes_cmac(k, nullptr /* empty message */, 0); in TEST() 74 …Octet16 k{0x2b, 0x7e, 0x15, 0x16, 0x28, 0xae, 0xd2, 0xa6, 0xab, 0xf7, 0x15, 0x88, 0x09, 0xcf, 0x4f… in TEST() local 81 std::reverse(std::begin(k), std::end(k)); in TEST() 85 Octet16 output = aes_cmac(k, m); in TEST() 98 …Octet16 k{0x2b, 0x7e, 0x15, 0x16, 0x28, 0xae, 0xd2, 0xa6, 0xab, 0xf7, 0x15, 0x88, 0x09, 0xcf, 0x4f… in TEST() local 107 std::reverse(std::begin(k), std::end(k)); in TEST() [all …]
|
/packages/modules/NeuralNetworks/driver/cache/BlobCache/ |
D | BlobCache_test.cpp | 295 uint8_t k = i; in TEST_P() local 296 mBC->set(&k, 1, "x", 1); in TEST_P() 300 uint8_t k = i; in TEST_P() local 301 if (mBC->get(&k, 1, NULL, 0) == 1) { in TEST_P() 315 uint8_t k = i; in TEST_P() local 316 mBC->set(&k, 1, "x", 1); in TEST_P() 320 uint8_t k = maxEntries; in TEST_P() local 321 mBC->set(&k, 1, "x", 1); in TEST_P() 327 uint8_t k = i; in TEST_P() local 328 bool found = (mBC->get(&k, 1, NULL, 0) == 1); in TEST_P() [all …]
|
/packages/modules/Bluetooth/system/embdrv/lc3/test/ |
D | tns.py | 89 nbits_coef = sum([ T.TNS_COEF_BITS[k][rc[k]] 90 for k in range(rc_order) ]) 112 for k in range(len(r) if sum(e) > 0 else 0): 113 c = [ np.dot(x[S[s]:S[s+1]-k], x[S[s]+k:S[s+1]]) 116 r[k] = np.sum( np.array(c) / np.array(e) ) 125 for k in range(1, len(a)): 127 rc = -sum(a[:k] * r[k:0:-1]) / err 129 a[1:k] += rc * a[k-1:0:-1] 130 a[k] = rc 146 for k in range(8, 0, -1): [all …]
|
D | ltpf.py | 71 k = np.arange(-120, 120 + p, p) - f 72 u[2+i] = p * np.dot( x[e:e+w+1], np.take(h, k) ) 165 return [ np.dot(x[:n], np.take(x, np.arange(n) - k)) \ 166 for k in range(k0, 1+k1) ] 168 def norm_corr(self, x, n, k): argument 171 v = np.take(x, np.arange(n) - k) 241 k = np.arange(-2, 3) 242 u = [ np.dot( np.take(x, i-k), np.take(h, 4*k) ) \ 244 v = [ np.dot( np.take(x, i-k), np.take(h, 4*k-f) ) \ 376 for k in range(n0): [all …]
|
/packages/services/Car/tools/cpu_perf/ |
D | cpu_perf.py | 162 for k in deviceSettings.cpusets: 163 cpusets[k] = deviceSettings.cpusets[k].copy() 164 for k in settings.cpusets: 166 if not k in deviceSettings.cpusets: 167 print("CPUSet {} not existing in device, ignore".format(k)) 169 cpusets[k] = settings.cpusets[k].copy() 170 for k in cpusets: 171 if k == "": # special case, no need to touch 173 cores = cpusets[k] 180 write_sysfs("/dev/cpuset/{}/cpus".format(k), ','.join(cores_string)) [all …]
|
/packages/modules/Bluetooth/system/blueberry/tests/gd/cert/ |
D | test_decorators.py | 185 for k, v in gathered_extras.items(): 186 if k not in new_signal.extras: 187 new_signal.extras[k] = v 189 if not isinstance(new_signal.extras[k], list): 190 new_signal.extras[k] = [new_signal.extras[k]] 192 new_signal.extras[k].insert(0, v) 226 for k, v in self.keyed_info.items(): 227 if v and k not in extras: 228 extras[k] = v 229 elif v and k in extras: [all …]
|
/packages/modules/Bluetooth/system/embdrv/lc3/tables/ |
D | mktables.py | 106 for (i, k) in enumerate(kv): 107 print('{{ {:14.7e}, {:14.7e} }},'.format(np.cos(k), np.sin(k)), 115 for k in kv: 118 np.cos(k), np.sin(k), np.cos(2*k), np.sin(2*k))) 128 for (i, k) in enumerate(kv): 129 print('{{ {:14.7e}, {:14.7e} }},'.format(np.cos(k), np.sin(k)), 179 k = 64 if r & (r-1) else 192 181 p = (192 // k) * (k // sr) 191 for i in range(0, len(h), 192 // k):
|
/packages/modules/Bluetooth/system/embdrv/sbc/encoder/srce/ |
D | sbc_dct.c | 183 uint8_t Index, k; in SBC_FastIDCT8() 188 for (k = 0; k < 16; k++) { in SBC_FastIDCT8() 191 temp += (gas16AnalDCTcoeff8[(Index * 8 * 2) + k] * (pInVect[k] >> 16)); in SBC_FastIDCT8() 193 ((gas16AnalDCTcoeff8[(Index * 8 * 2) + k] * (pInVect[k] & 0xFFFF)) >> in SBC_FastIDCT8() 252 uint8_t Index, k; in SBC_FastIDCT4() 257 for (k = 0; k < 8; k++) { in SBC_FastIDCT4() 260 temp += (gas16AnalDCTcoeff4[(Index * 4 * 2) + k] * (pInVect[k] >> 16)); in SBC_FastIDCT4() 262 ((gas16AnalDCTcoeff4[(Index * 4 * 2) + k] * (pInVect[k] & 0xFFFF)) >> in SBC_FastIDCT4()
|
/packages/modules/StatsD/statsd/src/ |
D | hash.cpp | 60 uint32_t k = DecodeFixed32(data); in Hash32() local 61 k *= m; in Hash32() 62 k ^= k >> r; in Hash32() 63 k *= m; in Hash32() 65 h ^= k; in Hash32() 98 uint64_t k = DecodeFixed64(data); in Hash64() local 102 k *= m; in Hash64() 103 k ^= k >> r; in Hash64() 104 k *= m; in Hash64() 106 h ^= k; in Hash64()
|
/packages/apps/Gallery2/jni/filters/ |
D | kmeans.h | 88 void initialPickHeuristicRandom(int k, T values[], int len, int dimension, int stride, T dst[], in initialPickHeuristicRandom() argument 94 unsigned int r_vals[k]; in initialPickHeuristicRandom() 97 for (x = 0; x < k; x++) { in initialPickHeuristicRandom() 141 int calculateNewCentroids(int k, T values[], int len, int dimension, int stride, T oldCenters[], in calculateNewCentroids() argument 144 pop_size = k * stride; in calculateNewCentroids() 145 int popularities[k]; in calculateNewCentroids() 149 memset(popularities, 0, sizeof(int) * k); in calculateNewCentroids() 179 void runKMeansWithPicks(int k, T finalCentroids[], T values[], int len, int dimension, int stride, in runKMeansWithPicks() argument 181 int k_len = k * stride; in runKMeansWithPicks() 194 ret = calculateNewCentroids<T, N>(k, values, len, dimension, stride, c1, c2); in runKMeansWithPicks() [all …]
|
/packages/apps/Test/connectivity/sl4n/rapidjson/include/rapidjson/internal/ |
D | biginteger.h | 92 uint64_t k = 0; variable 95 digits_[i] = MulAdd64(digits_[i], u, k, &hi); 96 k = hi; 99 if (k > 0) 100 PushBack(k); 110 uint64_t k = 0; variable 116 const uint64_t p0 = ud + k; 119 k = p1 >> 32; 122 if (k > 0) 123 PushBack(k); [all …]
|
/packages/modules/Bluetooth/system/stack/test/ |
D | crypto_toolbox_test.cc | 37 uint8_t k[] = {0x2b, 0x7e, 0x15, 0x16, 0x28, 0xae, 0xd2, 0xa6, in TEST() local 48 aes_set_key(k, sizeof(k), &ctx); in TEST() 61 Octet16 k{0x2b, 0x7e, 0x15, 0x16, 0x28, 0xae, 0xd2, 0xa6, in TEST() local 68 std::reverse(std::begin(k), std::end(k)); in TEST() 71 Octet16 output = aes_cmac(k, nullptr /* empty message */, 0); in TEST() 83 Octet16 k{0x2b, 0x7e, 0x15, 0x16, 0x28, 0xae, 0xd2, 0xa6, in TEST() local 93 std::reverse(std::begin(k), std::end(k)); in TEST() 97 Octet16 output = aes_cmac(k, m); in TEST() 110 Octet16 k{0x2b, 0x7e, 0x15, 0x16, 0x28, 0xae, 0xd2, 0xa6, in TEST() local 122 std::reverse(std::begin(k), std::end(k)); in TEST() [all …]
|
/packages/modules/NeuralNetworks/tools/api/ |
D | OperationTypes.t | 52 * a k-dimensional block (0 <= k <= n) with dims [Dn, ..., Dn+k-1], the format specifies: 57 * * 2: How each block dimension in [Dn, ..., Dn+k-1] maps to the original tensor dimension in 91 * block sparse with a k-dimensional block (0 < k <= n), the traversal order has n+k 92 * elements. The first n elements are still a permutation of [D0, …, Dn-1]. The last k 93 * elements are a permutation of [Dn, …, Dn+k-1], defining how to traverse a block 97 * block sparse n-dimensional tensor with a k-dimensional block (0 < k <= n), it stores how 98 * a block dimension [Dn, …, Dn+k-1] maps to the original tensor dimension in [D0, …, 99 * Dn-1]. For i, j where 0 <= i < j < k, blockMap[i] < blockMap[j]. If not block sparse, 101 * * 3: A 1-D {@link OperandType::TENSOR_INT32} tensor with n+k elements defining the format of 106 * * 4: A 1-D {@link OperandType::TENSOR_INT32} tensor with n+k elements defining the size of [all …]
|
/packages/apps/LegacyCamera/jni/feature_stab/src/dbreg/ |
D | dbreg.cpp | 274 for(int k=0; k<m_nr_corners_ref; k++) in UpdateReference() local 276 if(m_x_corners_ref[k]>m_im_width/3) in UpdateReference() 278 m_x_corners_ref[nr] = m_x_corners_ref[k]; in UpdateReference() 279 m_y_corners_ref[nr] = m_y_corners_ref[k]; in UpdateReference() 293 for(int k=0; k<m_nr_corners_ins; k++) in UpdateReference() local 295 m_x_corners_ref[k] = m_x_corners_ins[k]; in UpdateReference() 296 m_y_corners_ref[k] = m_y_corners_ins[k]; in UpdateReference() 603 for( int c=0, k=0 ;c < m_nr_matches; c++, k=k+3) in ComputeCostArray() local 605 … m_sq_cost[c] = SquaredInhomogenousHomographyError(m_corners_ins+k,m_H_ref_to_ins,m_corners_ref+k); in ComputeCostArray() 617 for(int c=0, k=0 ;c<m_nr_matches;c++,k=k+3) in SelectOutliers() local [all …]
|
/packages/modules/NeuralNetworks/common/cpu_operations/ |
D | RoiAlign.cpp | 118 for (uint32_t k = 0; k < inDepth; k++) outPtr[k] = 0; in roiAlignNhwc() local 151 for (uint32_t k = 0; k < inDepth; k++) { in roiAlignNhwc() local 154 interpolation += ws[c] * batchBase[offsets[c] + k]; in roiAlignNhwc() 156 outPtr[k] += interpolation; in roiAlignNhwc() 162 for (uint32_t k = 0; k < inDepth; k++) in roiAlignNhwc() local 163 outPtr[k] /= static_cast<T_Input>(numSamplingPoints); in roiAlignNhwc() 277 for (uint32_t k = 0; k < inDepth; k++) { in roiAlignQuantNhwc() local 282 wQuant * (static_cast<int32_t>(batchBase[offsets[c] + k]) - in roiAlignQuantNhwc() 285 outTemp[k] += interpolation; in roiAlignQuantNhwc() 291 for (uint32_t k = 0; k < inDepth; k++) { in roiAlignQuantNhwc() local [all …]
|
D | TopK_V2.cpp | 34 bool evalGeneric(const T* inputData, const Shape& inputShape, const int32_t k, T* valuesData, in evalGeneric() argument 45 std::nth_element(values.begin(), values.begin() + (rowSize - k), values.end()); in evalGeneric() 46 std::sort(values.begin() + (rowSize - k), values.end()); in evalGeneric() 48 for (int i = 0; i < k; ++i) { in evalGeneric() 71 const int32_t k = context->getInputValue<int32_t>(kTopKScalar); in prepare() local 72 NN_RET_CHECK_GT(k, 0); in prepare() 73 NN_RET_CHECK_LE(static_cast<uint32_t>(k), inputShape.dimensions.back()); in prepare() 78 outputValuesShape.dimensions.back() = k; in prepare() 82 outputIndicesShape.dimensions.back() = k; in prepare()
|
/packages/modules/Bluetooth/system/stack/smp/ |
D | p_256_ecc_pp.cc | 158 static void ECC_NAF(uint8_t* naf, uint32_t* NumNAF, uint32_t* k) { in ECC_NAF() argument 164 while ((var = multiprecision_most_signbits(k)) >= 1) { in ECC_NAF() 165 if (k[0] & 0x01) // k is odd in ECC_NAF() 167 sign = (k[0] & 0x03); // 1 or 3 in ECC_NAF() 171 k[0] = k[0] & 0xFFFFFFFE; in ECC_NAF() 173 k[0] = k[0] + 1; in ECC_NAF() 174 if (k[0] == 0) // overflow in ECC_NAF() 178 k[j]++; in ECC_NAF() 179 } while (k[j++] == 0); // overflow in ECC_NAF() 185 multiprecision_rshift(k, k); in ECC_NAF()
|
/packages/modules/Bluetooth/system/embdrv/encoder_for_aptxhd/src/ |
D | SubbandFunctionsCommon.h | 251 int32_t k; in performPredictionFiltering() local 300 for (k = 0; k < 12; k++) { in performPredictionFiltering() 307 coeffValue = *(zeroCoeffPt + k); in performPredictionFiltering() 320 *(zeroCoeffPt + k) = acc; in performPredictionFiltering() 356 int32_t k; in performPredictionFilteringLL() local 407 for (k = 0; k < 24; k++) { in performPredictionFilteringLL() 412 coeffValue = *(zeroCoeffPt + k); in performPredictionFilteringLL() 424 *(zeroCoeffPt + k) = acc; in performPredictionFilteringLL() 461 int32_t k; in performPredictionFilteringHL() local 511 for (k = 0; k < 6; k++) { in performPredictionFilteringHL() [all …]
|
/packages/modules/Bluetooth/system/embdrv/encoder_for_aptx/src/ |
D | SubbandFunctionsCommon.h | 254 int32_t k; in performPredictionFiltering() local 303 for (k = 0; k < 12; k++) { in performPredictionFiltering() 308 coeffValue = *(zeroCoeffPt + k); in performPredictionFiltering() 321 *(zeroCoeffPt + k) = acc; in performPredictionFiltering() 356 int32_t k; in performPredictionFilteringLL() local 408 for (k = 0; k < 24; k++) { in performPredictionFilteringLL() 413 coeffValue = *(zeroCoeffPt + k); in performPredictionFilteringLL() 425 *(zeroCoeffPt + k) = acc; in performPredictionFilteringLL() 462 int32_t k; in performPredictionFilteringHL() local 512 for (k = 0; k < 6; k++) { in performPredictionFilteringHL() [all …]
|
/packages/modules/Bluetooth/system/gd/security/ecc/ |
D | p_256_ecc_pp.cc | 163 static void ECC_NAF(uint8_t* naf, uint32_t* NumNAF, uint32_t* k) { in ECC_NAF() argument 169 while ((var = multiprecision_most_signbits(k)) >= 1) { in ECC_NAF() 170 if (k[0] & 0x01) // k is odd in ECC_NAF() 172 sign = (k[0] & 0x03); // 1 or 3 in ECC_NAF() 176 k[0] = k[0] & 0xFFFFFFFE; in ECC_NAF() 178 k[0] = k[0] + 1; in ECC_NAF() 179 if (k[0] == 0) // overflow in ECC_NAF() 183 k[j]++; in ECC_NAF() 184 } while (k[j++] == 0); // overflow in ECC_NAF() 190 multiprecision_rshift(k, k); in ECC_NAF()
|