/external/lzma/CPP/7zip/UI/Common/ |
SortUtils.h | 8 void SortFileNames(const UStringVector &strings, CUIntVector &indices);
|
SortUtils.cpp | 15 void SortFileNames(const UStringVector &strings, CUIntVector &indices)
18 indices.ClearAndSetSize(numItems);
21 unsigned *vals = &indices[0];
24 indices.Sort(CompareStrings, (void *)&strings);
|
/external/libopus/silk/ |
decode_indices.c | 56 psDec->indices.signalType = (opus_int8)silk_RSHIFT( Ix, 1 ); 57 psDec->indices.quantOffsetType = (opus_int8)( Ix & 1 ); 65 psDec->indices.GainsIndices[ 0 ] = (opus_int8)ec_dec_icdf( psRangeDec, silk_delta_gain_iCDF, 8 ); 68 psDec->indices.GainsIndices[ 0 ] = (opus_int8)silk_LSHIFT( ec_dec_icdf( psRangeDec, silk_gain_iCDF[ psDec->indices.signalType ], 8 ), 3 ); 69 psDec->indices.GainsIndices[ 0 ] += (opus_int8)ec_dec_icdf( psRangeDec, silk_uniform8_iCDF, 8 ); 74 psDec->indices.GainsIndices[ i ] = (opus_int8)ec_dec_icdf( psRangeDec, silk_delta_gain_iCDF, 8 ); 78 /* Decode LSF Indices */ 80 psDec->indices.NLSFIndices[ 0 ] = (opus_int8)ec_dec_icdf( psRangeDec, &psDec->psNLSF_CB->CB1_iCDF[ ( psDec->indices.signalType >> 1 ) * psDec->psNLSF_CB->nVectors ], 8 ) [all...] |
decode_parameters.c | 46 silk_gains_dequant( psDecCtrl->Gains_Q16, psDec->indices.GainsIndices, 52 silk_NLSF_decode( pNLSF_Q15, psDec->indices.NLSFIndices, psDec->psNLSF_CB ); 60 psDec->indices.NLSFInterpCoef_Q2 = 4; 63 if( psDec->indices.NLSFInterpCoef_Q2 < 4 ) { 67 pNLSF0_Q15[ i ] = psDec->prevNLSF_Q15[ i ] + silk_RSHIFT( silk_MUL( psDec->indices.NLSFInterpCoef_Q2, 86 if( psDec->indices.signalType == TYPE_VOICED ) { 92 silk_decode_pitch( psDec->indices.lagIndex, psDec->indices.contourIndex, psDecCtrl->pitchL, psDec->fs_kHz, psDec->nb_subfr ); 95 cbk_ptr_Q7 = silk_LTP_vq_ptrs_Q7[ psDec->indices.PERIndex ]; /* set pointer to start of codebook */ 98 Ix = psDec->indices.LTPIndex[ k ] [all...] |
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/ |
test_buffer.py | 16 indices = (0, None, 1, 3, 19, 300, -1, -2, -31, -300)
17 for start in indices:
18 for stop in indices:
20 for step in indices[1:]:
|
test_slice.py | 1 # tests for slice objects; in particular the indices method.
77 self.assertEqual(slice(None ).indices(10), (0, 10, 1))
78 self.assertEqual(slice(None, None, 2).indices(10), (0, 10, 2))
79 self.assertEqual(slice(1, None, 2).indices(10), (1, 10, 2))
80 self.assertEqual(slice(None, None, -1).indices(10), (9, -1, -1))
81 self.assertEqual(slice(None, None, -2).indices(10), (9, -1, -2))
82 self.assertEqual(slice(3, None, -2).indices(10), (3, -1, -2))
84 self.assertEqual(slice(None, -9).indices(10), (0, 1, 1))
85 self.assertEqual(slice(None, -10).indices(10), (0, 0, 1))
86 self.assertEqual(slice(None, -11).indices(10), (0, 0, 1)) [all...] |
/external/eigen/unsupported/Eigen/CXX11/src/Tensor/ |
TensorRef.h | 201 const array<Index, num_indices> indices{{firstIndex, otherIndices...}}; 202 return coeff(indices); 208 const array<Index, num_indices> indices{{firstIndex, otherIndices...}}; 209 return coeffRef(indices); 216 array<Index, 2> indices; local 217 indices[0] = i0; 218 indices[1] = i1; 219 return coeff(indices); 224 array<Index, 3> indices; local 225 indices[0] = i0 233 array<Index, 4> indices; local 243 array<Index, 5> indices; local 254 array<Index, 2> indices; local 262 array<Index, 3> indices; local 271 array<Index, 4> indices; local 281 array<Index, 5> indices; local [all...] |
/external/libcxx/test/std/re/re.iter/re.tokiter/re.tokiter.cnstr/ |
array.fail.cpp | 35 const int indices[] = {-1, 0, 1}; local 37 std::regex("\\d{3}-\\d{4}"), indices);
|
/external/skia/src/gpu/ |
GrPathRange.cpp | 27 void GrPathRange::loadPathsIfNeeded(const void* indices, PathIndexType indexType, int count) const { 30 return this->loadPathsIfNeeded(reinterpret_cast<const uint8_t*>(indices), count); 32 return this->loadPathsIfNeeded(reinterpret_cast<const uint16_t*>(indices), count); 34 return this->loadPathsIfNeeded(reinterpret_cast<const uint32_t*>(indices), count); 42 void GrPathRange::assertPathsLoaded(const void* indices, PathIndexType indexType, int count) const { 45 return this->assertPathsLoaded(reinterpret_cast<const uint8_t*>(indices), count); 47 return this->assertPathsLoaded(reinterpret_cast<const uint16_t*>(indices), count); 49 return this->assertPathsLoaded(reinterpret_cast<const uint32_t*>(indices), count);
|
/external/skqp/src/gpu/ |
GrPathRange.cpp | 27 void GrPathRange::loadPathsIfNeeded(const void* indices, PathIndexType indexType, int count) const { 30 return this->loadPathsIfNeeded(reinterpret_cast<const uint8_t*>(indices), count); 32 return this->loadPathsIfNeeded(reinterpret_cast<const uint16_t*>(indices), count); 34 return this->loadPathsIfNeeded(reinterpret_cast<const uint32_t*>(indices), count); 42 void GrPathRange::assertPathsLoaded(const void* indices, PathIndexType indexType, int count) const { 45 return this->assertPathsLoaded(reinterpret_cast<const uint8_t*>(indices), count); 47 return this->assertPathsLoaded(reinterpret_cast<const uint16_t*>(indices), count); 49 return this->assertPathsLoaded(reinterpret_cast<const uint32_t*>(indices), count);
|
/prebuilts/ndk/r16/sources/cxx-stl/llvm-libc++/test/std/re/re.iter/re.tokiter/re.tokiter.cnstr/ |
array.fail.cpp | 35 const int indices[] = {-1, 0, 1}; local 37 std::regex("\\d{3}-\\d{4}"), indices);
|
/external/skia/src/core/ |
SkVertState.cpp | 23 const uint16_t* indices = state->fIndices; local 28 state->f0 = indices[index + 0]; 29 state->f1 = indices[index + 1]; 30 state->f2 = indices[index + 2]; 53 const uint16_t* indices = state->fIndices; local 58 state->f2 = indices[index + 2]; 60 state->f0 = indices[index + 1]; 61 state->f1 = indices[index + 0]; 63 state->f0 = indices[index + 0]; 64 state->f1 = indices[index + 1] 83 const uint16_t* indices = state->fIndices; local [all...] |
SkVertState.h | 25 * If the vertices are unindexed pass nullptr for indices. 27 VertState(int vCount, const uint16_t indices[], int indexCount) 28 : fIndices(indices) { 30 if (indices) {
|
/external/skqp/src/core/ |
SkVertState.cpp | 23 const uint16_t* indices = state->fIndices; local 28 state->f0 = indices[index + 0]; 29 state->f1 = indices[index + 1]; 30 state->f2 = indices[index + 2]; 53 const uint16_t* indices = state->fIndices; local 58 state->f2 = indices[index + 2]; 60 state->f0 = indices[index + 1]; 61 state->f1 = indices[index + 0]; 63 state->f0 = indices[index + 0]; 64 state->f1 = indices[index + 1] 83 const uint16_t* indices = state->fIndices; local [all...] |
SkVertState.h | 25 * If the vertices are unindexed pass nullptr for indices. 27 VertState(int vCount, const uint16_t indices[], int indexCount) 28 : fIndices(indices) { 30 if (indices) {
|
/external/fonttools/Lib/fontTools/ttLib/tables/ |
T_S_I__0.py | 18 indices = [] 22 indices.append((glyphID, textLength, textOffset)) 25 assert indices[-5] == (0XFFFE, 0, -1409540300), "bad magic number" # 0xABFC1F34 26 self.indices = indices[:-5] 27 self.extra_indices = indices[-4:] 30 if not hasattr(self, "indices"): 35 for index, textLength, textOffset in self.indices: 42 def set(self, indices, extra_indices): 44 self.indices = indice [all...] |
/external/python/cpython3/Lib/test/ |
test_slice.py | 1 # tests for slice objects; in particular the indices method. 23 "slice indices must be integers or " 28 Reference implementation for the slice.indices method. 62 # Class providing an __index__ method. Used for testing slice.indices. 144 actual = slice.indices(length) 154 actual = range(*slice.indices(length)) 159 self.assertEqual(slice(None ).indices(10), (0, 10, 1)) 160 self.assertEqual(slice(None, None, 2).indices(10), (0, 10, 2)) 161 self.assertEqual(slice(1, None, 2).indices(10), (1, 10, 2)) 162 self.assertEqual(slice(None, None, -1).indices(10), (9, -1, -1) [all...] |
/external/tensorflow/tensorflow/compiler/tests/ |
scatter_nd_op_test.py | 49 def _NumpyScatterNd(ref, indices, updates, op): 50 ixdim = indices.shape[-1] 51 num_updates = indices.size // ixdim 56 flat_indices = _FlatInnerDims(indices) 66 def _NumpyUpdate(indices, updates, shape): 68 return _NumpyScatterNd(ref, indices, updates, lambda p, u: u) 94 indices = np.array(all_indices[:num_updates]) 97 indices = indices[:num_updates // 2] 99 indices = np.append [all...] |
/external/tensorflow/tensorflow/python/kernel_tests/ |
scatter_ops_test.py | 34 def _NumpyAdd(ref, indices, updates): 35 # Since numpy advanced assignment does not support repeated indices, 37 for i, indx in np.ndenumerate(indices): 41 def _NumpySub(ref, indices, updates): 42 for i, indx in np.ndenumerate(indices): 46 def _NumpyMul(ref, indices, updates): 47 for i, indx in np.ndenumerate(indices): 51 def _NumpyDiv(ref, indices, updates): 52 for i, indx in np.ndenumerate(indices): 56 def _NumpyUpdate(ref, indices, updates) [all...] |
one_hot_op_test.py | 56 indices = np.asarray([0, 2, -1, 1], dtype=np.int64) 68 indices=indices, 77 indices=indices, 86 indices = np.asarray([0, 2, -1, 1], dtype=np.int64) 94 self._testBothOneHot(indices=indices, depth=depth, truth=truth) 98 indices=indices, depth=depth, axis=0 [all...] |
/external/libopus/silk/fixed/ |
LTP_scale_ctrl_FIX.c | 46 psEnc->sCmn.indices.LTP_scaleIndex = (opus_int8)silk_LIMIT( 50 psEnc->sCmn.indices.LTP_scaleIndex = 0; 52 psEncCtrl->LTP_scale_Q14 = silk_LTPScales_table_Q14[ psEnc->sCmn.indices.LTP_scaleIndex ];
|
/external/libopus/silk/float/ |
LTP_scale_ctrl_FLP.c | 45 psEnc->sCmn.indices.LTP_scaleIndex = (opus_int8)silk_LIMIT( round_loss * psEncCtrl->LTPredCodGain * 0.1f, 0.0f, 2.0f ); 48 psEnc->sCmn.indices.LTP_scaleIndex = 0; 51 psEncCtrl->LTP_scale = (silk_float)silk_LTPScales_table_Q14[ psEnc->sCmn.indices.LTP_scaleIndex ] / 16384.0f;
|
/external/python/cpython2/Lib/test/ |
test_slice.py | 1 # tests for slice objects; in particular the indices method. 80 self.assertEqual(slice(None ).indices(10), (0, 10, 1)) 81 self.assertEqual(slice(None, None, 2).indices(10), (0, 10, 2)) 82 self.assertEqual(slice(1, None, 2).indices(10), (1, 10, 2)) 83 self.assertEqual(slice(None, None, -1).indices(10), (9, -1, -1)) 84 self.assertEqual(slice(None, None, -2).indices(10), (9, -1, -2)) 85 self.assertEqual(slice(3, None, -2).indices(10), (3, -1, -2)) 87 self.assertEqual(slice(None, -9).indices(10), (0, 1, 1)) 88 self.assertEqual(slice(None, -10).indices(10), (0, 0, 1)) 89 self.assertEqual(slice(None, -11).indices(10), (0, 0, 1) [all...] |
/external/tensorflow/tensorflow/contrib/reduce_slice_ops/python/kernel_tests/ |
reduce_slice_ops_test.py | 32 indices = np.array([[0, 1], [0, 3], [1, 2], [1, 3], [0, 2]], dtype=np.int32) 35 y_tf = reduce_slice_ops.reduce_slice_sum(x, indices, 0).eval() 40 indices = np.array([[0, 1], [0, 3], [1, 2], [1, 3], [0, 2]], dtype=np.int32) 44 y_tf = reduce_slice_ops.reduce_slice_sum(x, indices, 0).eval() 50 indices = np.array([[0, 1], [0, 3], [1, 2], [1, 3], [0, 2]], dtype=np.int32) 57 y_tf = reduce_slice_ops.reduce_slice_sum(x, indices, 0).eval() 63 indices = np.array([[0, 1], [0, 3], [1, 2], [1, 3], [0, 2]], dtype=np.int32) 70 y_tf = reduce_slice_ops.reduce_slice_sum(x, indices, 1).eval() 76 indices = np.array([0, 0, 2, 5], dtype=np.int32) 80 y_tf = reduce_slice_ops.reduce_slice_sum(x, indices, 0).eval( [all...] |
/prebuilts/gdb/darwin-x86/lib/python2.7/test/ |
test_slice.py | 1 # tests for slice objects; in particular the indices method. 77 self.assertEqual(slice(None ).indices(10), (0, 10, 1)) 78 self.assertEqual(slice(None, None, 2).indices(10), (0, 10, 2)) 79 self.assertEqual(slice(1, None, 2).indices(10), (1, 10, 2)) 80 self.assertEqual(slice(None, None, -1).indices(10), (9, -1, -1)) 81 self.assertEqual(slice(None, None, -2).indices(10), (9, -1, -2)) 82 self.assertEqual(slice(3, None, -2).indices(10), (3, -1, -2)) 84 self.assertEqual(slice(None, -9).indices(10), (0, 1, 1)) 85 self.assertEqual(slice(None, -10).indices(10), (0, 0, 1)) 86 self.assertEqual(slice(None, -11).indices(10), (0, 0, 1) [all...] |