Home
last modified time | relevance | path

Searched refs:pos1 (Results 1 – 25 of 101) sorted by relevance

12345

/external/webrtc/webrtc/modules/audio_coding/codecs/isac/main/source/
Dlpc_analysis.c212 int k, n, j, pos1, pos2; in WebRtcIsac_GetLpcCoefLb() local
247 for (pos1 = 0; pos1 < QLOOKAHEAD; pos1++) in WebRtcIsac_GetLpcCoefLb()
248 maskdata->DataBufferLo[pos1 + WINLEN - QLOOKAHEAD] = inLo[pos1]; in WebRtcIsac_GetLpcCoefLb()
253 for (pos1 = 0; pos1 < WINLEN - UPDATE/2; pos1++) { in WebRtcIsac_GetLpcCoefLb()
254 maskdata->DataBufferLo[pos1] = maskdata->DataBufferLo[pos1 + UPDATE/2]; in WebRtcIsac_GetLpcCoefLb()
255 maskdata->DataBufferHi[pos1] = maskdata->DataBufferHi[pos1 + UPDATE/2]; in WebRtcIsac_GetLpcCoefLb()
256 DataLo[pos1] = maskdata->DataBufferLo[pos1] * kLpcCorrWindow[pos1]; in WebRtcIsac_GetLpcCoefLb()
257 DataHi[pos1] = maskdata->DataBufferHi[pos1] * kLpcCorrWindow[pos1]; in WebRtcIsac_GetLpcCoefLb()
260 for (n = 0; n < UPDATE/2; n++, pos1++) { in WebRtcIsac_GetLpcCoefLb()
261 maskdata->DataBufferLo[pos1] = inLo[QLOOKAHEAD + pos2]; in WebRtcIsac_GetLpcCoefLb()
[all …]
/external/google-breakpad/src/common/linux/
Dlinux_libc_support.cc199 size_t pos1 = 0; in my_strlcpy() local
203 if (pos1 + 1 < len) { in my_strlcpy()
204 s1[pos1] = s2[pos2]; in my_strlcpy()
205 pos1++; in my_strlcpy()
210 s1[pos1] = '\0'; in my_strlcpy()
216 size_t pos1 = 0; in my_strlcat() local
218 while (pos1 < len && s1[pos1] != '\0') in my_strlcat()
219 pos1++; in my_strlcat()
221 if (pos1 == len) in my_strlcat()
222 return pos1; in my_strlcat()
[all …]
/external/libvpx/libvpx/vpx_dsp/mips/
Dadd_noise_msa.c18 v16u8 pos0, pos1, ref0, ref1; in vpx_plane_add_noise_msa() local
34 pos1 = LD_UB(pos1_ptr); in vpx_plane_add_noise_msa()
37 pos1 = __msa_subsus_u_b(pos1, black_clamp); in vpx_plane_add_noise_msa()
39 pos1 = __msa_subsus_u_b(pos1, both_clamp); in vpx_plane_add_noise_msa()
41 pos1 = __msa_subsus_u_b(pos1, white_clamp); in vpx_plane_add_noise_msa()
44 pos1 += ref1; in vpx_plane_add_noise_msa()
45 ST_UB(pos1, pos1_ptr); in vpx_plane_add_noise_msa()
/external/icu/icu4c/source/samples/uciter8/
Duciter8.c55 int32_t i, pos1, pos2, middle, length; in compareIterators() local
69 pos1=iter1->move(iter1, middle, UITER_ZERO); in compareIterators()
70 if(pos1!=middle) { in compareIterators()
71 log_err("%s->move(from 0 to middle %d)=%d does not move to the middle\n", n1, middle, pos1); in compareIterators()
110 pos1=iter1->move(iter1, 0, UITER_START); in compareIterators()
111 if(pos1<0) { in compareIterators()
149 pos1=iter1->move(iter1, middle, UITER_ZERO); in compareIterators()
150 if(pos1!=middle) { in compareIterators()
151 … log_err("%s->move(from end to middle %d)=%d does not move to the middle\n", n1, middle, pos1); in compareIterators()
162 pos1=iter1->move(iter1, 1, UITER_ZERO); in compareIterators()
[all …]
/external/webrtc/webrtc/modules/audio_coding/codecs/isac/fix/source/
Dlpc_masking_model.c539 int pos1, pos2; in WebRtcIsacfix_GetLpcCoef() local
606 for (pos1 = 0; pos1 < QLOOKAHEAD; pos1++) { in WebRtcIsacfix_GetLpcCoef()
607 maskdata->DataBufferLoQ0[pos1 + WINLEN - QLOOKAHEAD] = inLoQ0[pos1]; in WebRtcIsacfix_GetLpcCoef()
613 for (pos1 = 0; pos1 < WINLEN - UPDATE/2; pos1++) { in WebRtcIsacfix_GetLpcCoef()
614 maskdata->DataBufferLoQ0[pos1] = maskdata->DataBufferLoQ0[pos1 + UPDATE/2]; in WebRtcIsacfix_GetLpcCoef()
615 maskdata->DataBufferHiQ0[pos1] = maskdata->DataBufferHiQ0[pos1 + UPDATE/2]; in WebRtcIsacfix_GetLpcCoef()
616 DataLoQ6[pos1] = (int16_t)(maskdata->DataBufferLoQ0[pos1] * in WebRtcIsacfix_GetLpcCoef()
617 kWindowAutocorr[pos1] >> 15); // Q0*Q21>>15 = Q6 in WebRtcIsacfix_GetLpcCoef()
618 DataHiQ6[pos1] = (int16_t)(maskdata->DataBufferHiQ0[pos1] * in WebRtcIsacfix_GetLpcCoef()
619 kWindowAutocorr[pos1] >> 15); // Q0*Q21>>15 = Q6 in WebRtcIsacfix_GetLpcCoef()
[all …]
/external/freetype/src/truetype/
Dttpload.c199 FT_ULong pos1, pos2; in tt_face_get_location() local
204 pos1 = pos2 = 0; in tt_face_get_location()
213 pos1 = FT_NEXT_ULONG( p ); in tt_face_get_location()
214 pos2 = pos1; in tt_face_get_location()
224 pos1 = FT_NEXT_USHORT( p ); in tt_face_get_location()
225 pos2 = pos1; in tt_face_get_location()
230 pos1 <<= 1; in tt_face_get_location()
236 if ( pos1 > face->glyf_len ) in tt_face_get_location()
242 pos1, gindex, face->glyf_len )); in tt_face_get_location()
256 pos2 - pos1, gindex, face->glyf_len - pos1 )); in tt_face_get_location()
[all …]
/external/mesa3d/src/gallium/auxiliary/draw/
Ddraw_pipe_wide_line.c73 float *pos1 = v1->data[pos]; in wideline_line() local
95 pos1[1] = pos1[1] + half_width - bias; in wideline_line()
102 pos1[0] -= 0.5f; in wideline_line()
109 pos1[0] += 0.5f; in wideline_line()
118 pos1[0] = pos1[0] + half_width + bias; in wideline_line()
125 pos1[1] -= 0.5f; in wideline_line()
132 pos1[1] += 0.5f; in wideline_line()
Ddraw_pipe_stipple.c127 const float *pos1 = v1->data[pos]; in stipple_line() local
132 float x1 = pos1[0]; in stipple_line()
134 float y1 = pos1[1]; in stipple_line()
/external/aac/libAACdec/src/
Dusacdec_ace_d4t64.cpp153 SHORT pos1; in D_ACELP_decode_1p_N1() local
160 pos1 = (SHORT)((index & mask) + offset); in D_ACELP_decode_1p_N1()
163 pos1 += 16; in D_ACELP_decode_1p_N1()
165 pos[0] = pos1; in D_ACELP_decode_1p_N1()
185 SHORT pos1, pos2; in D_ACELP_decode_2p_2N1() local
191 pos1 = (SHORT)(((index >> N) & mask) + offset); in D_ACELP_decode_2p_2N1()
194 if ((pos2 - pos1) < 0) { in D_ACELP_decode_2p_2N1()
196 pos1 += 16; in D_ACELP_decode_2p_2N1()
202 pos1 += 16; in D_ACELP_decode_2p_2N1()
206 pos[0] = pos1; in D_ACELP_decode_2p_2N1()
/external/libcxx/test/std/strings/string.view/string.view.ops/
Dcompare.size_size_sv.pass.cpp23 void test1 ( std::basic_string_view<CharT> sv1, size_t pos1, size_t n1, in test1() argument
26 if (pos1 <= sv1.size()) in test1()
27 assert(sign( sv1.compare(pos1, n1, sv2)) == sign(expected)); in test1()
30 assert(sign( sv1.compare(pos1, n1, sv2)) == sign(expected)); in test1()
31 assert(pos1 <= sv1.size()); in test1()
34 assert(pos1 > sv1.size()); in test1()
41 void test ( const CharT *s1, size_t pos1, size_t n1, const CharT *s2, int expected ) { in test() argument
45 test1(sv1, pos1, n1, sv2, expected); in test()
Dcompare.pointer_size.pass.cpp24 size_t pos1, size_t n1, const CharT *s, int expected ) { in test1() argument
26 if (pos1 <= sv1.size()) in test1()
27 assert(sign(sv1.compare(pos1, n1, s)) == sign(expected)); in test1()
30 assert(sign(sv1.compare(pos1, n1, s)) == sign(expected)); in test1()
31 assert(pos1 <= sv1.size()); in test1()
34 assert(pos1 > sv1.size()); in test1()
41 test( const CharT *s1, size_t pos1, size_t n1, const CharT *s2, int expected) in test() argument
45 test1 ( sv1, pos1, n1, s2, expected ); in test()
Dcompare.size_size_sv_pointer_size.pass.cpp24 void test1 ( std::basic_string_view<CharT> sv1, size_t pos1, size_t n1, in test1() argument
27 if (pos1 <= sv1.size()) in test1()
28 assert(sign(sv1.compare(pos1, n1, s2, n2)) == sign(expected)); in test1()
31 assert(sign(sv1.compare(pos1, n1, s2, n2)) == sign(expected)); in test1()
32 assert(pos1 <= sv1.size()); in test1()
35 assert(pos1 > sv1.size()); in test1()
42 void test ( const CharT *s1, size_t pos1, size_t n1, in test() argument
47 test1 (sv1, pos1, n1, s2, n2, expected); in test()
/external/v8/src/debug/
Dliveedit.js380 function DiffChunk(pos1, pos2, len1, len2) { argument
381 this.pos1 = pos1;
407 if (array.length == 0 || pos < array[0].pos1) {
415 if (pos < array[middle_index + 1].pos1) {
422 if (pos >= chunk.pos1 + chunk.len1) {
423 return pos + chunk.pos2 + chunk.len2 - chunk.pos1 - chunk.len1;
440 return pos - diff_chunk.pos1 + diff_chunk.pos2;
526 pos_diff = chunk.pos2 + chunk.len2 - (chunk.pos1 + chunk.len1);
544 chunk_it.current().pos1 < info_node.info.end_position) {
548 if (child.info.end_position <= chunk_it.current().pos1) {
[all …]
Dliveedit.cc67 int pos1 = 0; in SaveResult() local
70 if (pos1 < len1_) { in SaveResult()
72 Direction dir = get_direction(pos1, pos2); in SaveResult()
76 pos1++; in SaveResult()
81 pos1++; in SaveResult()
92 writer.skip1(len1_ - pos1); in SaveResult()
122 int CompareUpToTail(int pos1, int pos2) { in CompareUpToTail() argument
123 if (pos1 < len1_) { in CompareUpToTail()
125 int cached_res = get_value4(pos1, pos2); in CompareUpToTail()
129 if (input_->Equals(pos1, pos2)) { in CompareUpToTail()
[all …]
/external/swiftshader/src/Shader/
DVertexPipeline.cpp110 Vector4f pos1; in transformBlend() local
113 pos1 = transform(src, matrix, index1, homogeneous); in transformBlend()
115 dst.x = pos0.x * weight0 + pos1.x * weight1; // FIXME: Vector4f operators in transformBlend()
116 dst.y = pos0.y * weight0 + pos1.y * weight1; in transformBlend()
117 dst.z = pos0.z * weight0 + pos1.z * weight1; in transformBlend()
118 dst.w = pos0.w * weight0 + pos1.w * weight1; in transformBlend()
125 Vector4f pos1; in transformBlend() local
129 pos1 = transform(src, matrix, index1, homogeneous); in transformBlend()
132 dst.x = pos0.x * weight0 + pos1.x * weight1 + pos2.x * weight2; in transformBlend()
133 dst.y = pos0.y * weight0 + pos1.y * weight1 + pos2.y * weight2; in transformBlend()
[all …]
/external/skqp/gm/
Dpictureimagegenerator.cpp70 const SkScalar pos1[] = { 0, 0.75f }; in draw_vector_logo() local
72 SkASSERT(SK_ARRAY_COUNT(pos1) == SK_ARRAY_COUNT(colors1)); in draw_vector_logo()
73 paint.setShader(SkGradientShader::MakeLinear(pts1, colors1, pos1, SK_ARRAY_COUNT(pos1), in draw_vector_logo()
/external/skia/gm/
Dpictureimagegenerator.cpp70 const SkScalar pos1[] = { 0, 0.75f }; in draw_vector_logo() local
72 SkASSERT(SK_ARRAY_COUNT(pos1) == SK_ARRAY_COUNT(colors1)); in draw_vector_logo()
73 paint.setShader(SkGradientShader::MakeLinear(pts1, colors1, pos1, SK_ARRAY_COUNT(pos1), in draw_vector_logo()
/external/libcxx/test/std/strings/basic.string/string.ops/string_compare/
Dsize_size_pointer.pass.cpp33 test(const S& s, typename S::size_type pos1, typename S::size_type n1, in test() argument
36 if (pos1 <= s.size()) in test()
37 assert(sign(s.compare(pos1, n1, str)) == sign(x)); in test()
43 TEST_IGNORE_NODISCARD s.compare(pos1, n1, str); in test()
48 assert(pos1 > s.size()); in test()
Dsize_size_string_view.pass.cpp33 test(const S& s, typename S::size_type pos1, typename S::size_type n1, in test() argument
36 if (pos1 <= s.size()) in test()
37 assert(sign(s.compare(pos1, n1, sv)) == sign(x)); in test()
43 TEST_IGNORE_NODISCARD s.compare(pos1, n1, sv); in test()
48 assert(pos1 > s.size()); in test()
/external/icu/icu4c/source/test/cintltst/
Dcustrtst.c1191 int32_t i, pos1, pos2, middle, length; in compareIterators() local
1205 pos1=iter1->move(iter1, middle, UITER_ZERO); in compareIterators()
1206 if(pos1!=middle) { in compareIterators()
1207 log_err("%s->move(from 0 to middle %d)=%d does not move to the middle\n", n1, middle, pos1); in compareIterators()
1246 pos1=iter1->move(iter1, 0, UITER_START); in compareIterators()
1247 if(pos1<0) { in compareIterators()
1285 pos1=iter1->move(iter1, middle, UITER_ZERO); in compareIterators()
1286 if(pos1!=middle) { in compareIterators()
1287 … log_err("%s->move(from end to middle %d)=%d does not move to the middle\n", n1, middle, pos1); in compareIterators()
1298 pos1=iter1->move(iter1, 1, UITER_ZERO); in compareIterators()
[all …]
Dcnumtst.c167 UFieldPosition pos1; in TestNumberFormat() local
264 pos1.field = UNUM_INTEGER_FIELD; in TestNumberFormat()
265 resultlengthneeded=unum_format(cur_def, l, NULL, resultlength, &pos1, &status); in TestNumberFormat()
273 unum_format(cur_def, l, result, resultlength, &pos1, &status); in TestNumberFormat()
285 if(pos1.beginIndex == 1 && pos1.endIndex == 12) in TestNumberFormat()
289 pos1.beginIndex, pos1.endIndex); in TestNumberFormat()
323 pos1.beginIndex, pos1.endIndex); in TestNumberFormat()
375 pos1.beginIndex, pos1.endIndex); in TestNumberFormat()
445 resultlengthneeded=unum_format(per_fr, l, NULL, resultlength, &pos1, &status); in TestNumberFormat()
453 unum_format(per_fr, l, result, resultlength, &pos1, &status); in TestNumberFormat()
[all …]
/external/honggfuzz/libhfuzz/
Dinstrument.c193 register size_t pos1 = (uintptr_t)__builtin_return_address(0) << 12; in __sanitizer_cov_trace_pc_indir() local
195 register size_t pos = (pos1 | pos2) & _HF_PERF_BITMAP_BITSZ_MASK; in __sanitizer_cov_trace_pc_indir()
205 register size_t pos1 = (uintptr_t)__builtin_return_address(0) << 12; in __sanitizer_cov_indir_call16() local
207 register size_t pos = (pos1 | pos2) & _HF_PERF_BITMAP_BITSZ_MASK; in __sanitizer_cov_indir_call16()
/external/v8/tools/turbolizer/
Dcode-view.js36 var pos1 = span1.start;
45 if (currentSpan.start > pos1 ||
46 (inclusive1 && currentSpan.start == pos1)) {
/external/libcxx/test/std/strings/basic.string/string.modifiers/string_replace/
Dsize_size_string.pass.cpp25 test(S s, typename S::size_type pos1, typename S::size_type n1, S str, S expected) in test() argument
29 if (pos1 <= old_size) in test()
31 s.replace(pos1, n1, str); in test()
34 typename S::size_type xlen = std::min(n1, old_size - pos1); in test()
43 s.replace(pos1, n1, str); in test()
48 assert(pos1 > old_size); in test()
Dsize_size_string_view.pass.cpp25 test(S s, typename S::size_type pos1, typename S::size_type n1, SV sv, S expected) in test() argument
29 if (pos1 <= old_size) in test()
31 s.replace(pos1, n1, sv); in test()
34 typename S::size_type xlen = std::min(n1, old_size - pos1); in test()
43 s.replace(pos1, n1, sv); in test()
48 assert(pos1 > old_size); in test()

12345