Searched defs:shift (Results 151 - 175 of 657) sorted by path

1234567891011>>

/external/chromium_org/third_party/mesa/src/src/mesa/swrast/
H A Ds_drawpix.c344 /* Special case: shift 32-bit values down to Visual.depthBits */
345 const GLint shift = 32 - ctx->DrawBuffer->Visual.depthBits; local
351 if (shift == 0) {
357 span.array->z[col] = zSrc[col] >> shift;
543 * stencil offset/shift, GL_DEPTH_WRITEMASK and GL_STENCIL_WRITEMASK,
626 /* get stencil values, with shift/offset/mapping */
H A Ds_texfilter.c1423 const GLint shift = img->WidthLog2; local
1437 GLint pos = (j << shift) | i;
1468 const GLint shift = img->WidthLog2; local
1482 const GLint pos = (row << shift) | col;
/external/chromium_org/third_party/npapi/npspy/extern/nspr/
H A Dplhash.h87 PRUint32 shift; /* multiplicative hash shift */ member in struct:PLHashTable
/external/chromium_org/third_party/openmax_dl/dl/sp/src/mips/
H A DomxSP_FFTInit_R_F32.c153 int shift = 2; local
158 if (((p_offset[j] << shift) + over - 1) >= fft_size)
161 shift++;
172 int shift = 2; local
177 if (((p_offset[j] << shift) + over - 1) >= fft_size)
180 shift++;
/external/chromium_org/third_party/opus/src/celt/
H A Dbands.c114 int shift = celt_ilog2(maxval)-10; local
116 sum = MAC16_16(sum, EXTRACT16(VSHR32(X[j+c*N],shift)),
117 EXTRACT16(VSHR32(X[j+c*N],shift)));
120 bandE[i+c*m->nbEBands] = EPSILON+VSHR32(EXTEND32(celt_sqrt(sum)),-shift);
139 int j,shift; local
141 shift = celt_zlog2(bandE[i+c*m->nbEBands])-13;
142 E = VSHR32(bandE[i+c*m->nbEBands], shift);
145 X[j+c*N] = MULT16_16_Q15(VSHR32(freq[j+c*N],shift-1),g);
212 int shift; local
221 shift
269 int shift; local
361 int shift = celt_zlog2(MAX32(bandE[i], bandE[i+m->nbEBands]))-13; local
[all...]
H A Dcelt_decoder.c266 int shift; local
273 shift = mode->maxLM;
277 shift = mode->maxLM-LM;
282 clt_mdct_backward(&mode->mdct, &X[b+c*N*B], out_mem[c]+N*b, mode->window, overlap, shift, B);
529 int shift = IMAX(0,2*celt_zlog2(celt_maxabs16(&exc[MAX_PERIOD-exc_length], exc_length))-20); local
536 E1 += SHR32(MULT16_16(e, e), shift);
538 E2 += SHR32(MULT16_16(e, e), shift);
H A Dcelt_encoder.c285 int shift=0; local
286 shift = 14-celt_ilog2(1+celt_maxabs16(tmp, len));
287 if (shift!=0)
290 tmp[i] = SHL16(tmp[i], shift);
425 int shift; local
431 shift = mode->maxLM;
435 shift = mode->maxLM-LM;
441 clt_mdct_forward(&mode->mdct, in+c*(B*N+overlap)+b*N, &out[b+c*N*B], mode->window, overlap, shift, B);
H A Dcelt_lpc.c236 int shift; local
256 shift=0;
268 shift = celt_ilog2(ac0)-30+10;
269 shift = (shift)/2;
270 if (shift>0)
273 xx[i] = PSHR32(xptr[i], shift);
276 shift = 0;
287 shift = 2*shift;
[all...]
H A Dentenc.c215 int shift; local
218 shift=EC_SYM_BITS-_nbits;
219 mask=((1<<_nbits)-1)<<shift;
222 _this->buf[0]=(unsigned char)((_this->buf[0]&~mask)|_val<<shift);
226 _this->rem=(_this->rem&~mask)|_val<<shift;
231 (opus_uint32)_val<<(EC_CODE_SHIFT+shift);
H A Dfixed_debug.h47 /** 16x32 multiplication, followed by a 16-bit shift right. Results fits in 32 bits */
137 #define SHR16(a, shift) SHR16_(a, shift, __FILE__, __LINE__)
138 static OPUS_INLINE short SHR16_(int a, int shift, char *file, int line) argument
141 if (!VERIFY_SHORT(a) || !VERIFY_SHORT(shift))
143 fprintf (stderr, "SHR16: inputs are not short: %d >> %d in %s: line %d\n", a, shift, file, line);
148 res = a>>shift;
159 #define SHL16(a, shift) SHL16_(a, shift, __FILE__, __LINE__)
160 static OPUS_INLINE short SHL16_(int a, int shift, cha argument
182 SHR32(opus_int64 a, int shift) argument
204 SHL32_(opus_int64 a, int shift, char *file, int line) argument
[all...]
H A Dkiss_fft.c564 st->shift = 0;
565 while (nfft<<st->shift != base->nfft && st->shift < 32)
566 st->shift++;
567 if (st->shift>=32)
572 st->shift = -1;
601 if (cfg->shift < 0)
616 int shift; local
618 /* st->shift can be -1 */
619 shift
675 int shift; local
[all...]
H A Dkiss_fft.h85 int shift; member in struct:kiss_fft_state
H A Dmathops.c73 int shift = celt_ilog2(b)-29; local
74 a = VSHR32(a,shift);
75 b = VSHR32(b,shift);
H A Dmdct.c106 const opus_val16 *window, int overlap, int shift, int stride)
115 N >>= shift; local
176 yr = -S_MUL(re,t[i<<shift]) - S_MUL(im,t[(N4-i)<<shift]);
177 yi = -S_MUL(im,t[i<<shift]) + S_MUL(re,t[(N4-i)<<shift]);
185 opus_fft(l->kfft[shift], (kiss_fft_cpx *)f, (kiss_fft_cpx *)f2);
198 yr = S_MUL(fp[1],t[(N4-i)<<shift]) + S_MUL(fp[0],t[i<<shift]);
199 yi = S_MUL(fp[0],t[(N4-i)<<shift])
105 clt_mdct_forward(const mdct_lookup *l, kiss_fft_scalar *in, kiss_fft_scalar * OPUS_RESTRICT out, const opus_val16 *window, int overlap, int shift, int stride) argument
211 clt_mdct_backward(const mdct_lookup *l, kiss_fft_scalar *in, kiss_fft_scalar * OPUS_RESTRICT out, const opus_val16 * OPUS_RESTRICT window, int overlap, int shift, int stride) argument
220 N >>= shift; local
[all...]
H A Dpitch.c157 int shift; local
166 shift = celt_ilog2(maxabs)-10;
167 if (shift<0)
168 shift=0;
170 shift++;
173 x_lp[i] = SHR32(HALF32(HALF32(x[0][(2*i-1)]+x[0][(2*i+1)])+x[0][2*i]), shift);
174 x_lp[0] = SHR32(HALF32(HALF32(x[0][1])+x[0][0]), shift);
178 x_lp[i] += SHR32(HALF32(HALF32(x[1][(2*i-1)]+x[1][(2*i+1)])+x[1][2*i]), shift);
179 x_lp[0] += SHR32(HALF32(HALF32(x[1][1])+x[1][0]), shift);
308 int shift local
[all...]
/external/chromium_org/third_party/opus/src/silk/
H A DMacroCount.h331 static OPUS_INLINE opus_int8 silk_LSHIFT8(opus_int8 a, opus_int32 shift){ argument
334 ret = a << shift;
338 static OPUS_INLINE opus_int16 silk_LSHIFT16(opus_int16 a, opus_int32 shift){ argument
341 ret = a << shift;
345 static OPUS_INLINE opus_int32 silk_LSHIFT32(opus_int32 a, opus_int32 shift){ argument
348 ret = a << shift;
352 static OPUS_INLINE opus_int64 silk_LSHIFT64(opus_int64 a, opus_int shift){ argument
354 return a << shift;
358 static OPUS_INLINE opus_int32 silk_LSHIFT_ovflw(opus_int32 a, opus_int32 shift){ argument
360 return a << shift;
364 silk_LSHIFT_uint(opus_uint32 a, opus_int32 shift) argument
372 silk_RSHIFT8(opus_int8 a, opus_int32 shift) argument
377 silk_RSHIFT16(opus_int16 a, opus_int32 shift) argument
382 silk_RSHIFT32(opus_int32 a, opus_int32 shift) argument
387 silk_RSHIFT64(opus_int64 a, opus_int64 shift) argument
393 silk_RSHIFT_uint(opus_uint32 a, opus_int32 shift) argument
399 silk_ADD_LSHIFT(opus_int32 a, opus_int32 b, opus_int32 shift) argument
406 silk_ADD_LSHIFT32(opus_int32 a, opus_int32 b, opus_int32 shift) argument
413 silk_ADD_LSHIFT_uint(opus_uint32 a, opus_uint32 b, opus_int32 shift) argument
420 silk_ADD_RSHIFT(opus_int32 a, opus_int32 b, opus_int32 shift) argument
427 silk_ADD_RSHIFT32(opus_int32 a, opus_int32 b, opus_int32 shift) argument
434 silk_ADD_RSHIFT_uint(opus_uint32 a, opus_uint32 b, opus_int32 shift) argument
441 silk_SUB_LSHIFT32(opus_int32 a, opus_int32 b, opus_int32 shift) argument
448 silk_SUB_RSHIFT32(opus_int32 a, opus_int32 b, opus_int32 shift) argument
456 silk_RSHIFT_ROUND(opus_int32 a, opus_int32 shift) argument
464 silk_RSHIFT_ROUND64(opus_int64 a, opus_int32 shift) argument
[all...]
H A Dsum_sqr_shift.c34 /* Compute number of bits to right shift the sum of squares of a vector */
38 opus_int *shift, /* O Number of bits right shift applied to energy */
82 *shift = shft;
36 silk_sum_sqr_shift( opus_int32 *energy, opus_int *shift, const opus_int16 *x, opus_int len ) argument
/external/chromium_org/third_party/opus/src/silk/fixed/
H A Dfind_LPC_FIX.c46 opus_int isInterpLower, shift; local
73 shift = res_tmp_nrg_Q - res_nrg_Q;
74 if( shift >= 0 ) {
75 if( shift < 32 ) {
76 res_nrg = res_nrg - silk_RSHIFT( res_tmp_nrg, shift );
79 silk_assert( shift > -32 );
80 res_nrg = silk_RSHIFT( res_nrg, -shift ) - res_tmp_nrg;
104 shift = rshift0 - rshift1;
105 if( shift >= 0 ) {
106 res_nrg1 = silk_RSHIFT( res_nrg1, shift );
[all...]
H A Dnoise_shape_analysis_FIX.c267 opus_int shift, slope_part, flat_part; local
272 shift = slope_part;
273 silk_memcpy( x_windowed + shift, x_ptr + shift, flat_part * sizeof(opus_int16) );
274 shift += flat_part;
275 silk_apply_sine_window( x_windowed + shift, x_ptr + shift, 2, slope_part );
H A Dpitch_analysis_core_FIX.c104 opus_int32 cross_corr, normalizer, energy, shift, energy_basis, energy_target; local
168 silk_sum_sqr_shift( &energy, &shift, frame_4kHz, frame_length_4kHz );
169 if( shift > 0 ) {
170 shift = silk_RSHIFT( shift, 1 );
172 frame_4kHz[ i ] = silk_RSHIFT( frame_4kHz[ i ], shift );
317 silk_sum_sqr_shift( &energy, &shift, frame_8kHz, frame_length_8kHz );
318 if( shift > 0 ) {
319 shift = silk_RSHIFT( shift,
[all...]
/external/chromium_org/third_party/opus/src/silk/float/
H A Dnoise_shape_analysis_FLP.c232 opus_int shift, slope_part, flat_part; local
237 shift = slope_part;
238 silk_memcpy( x_windowed + shift, x_ptr + shift, flat_part * sizeof(silk_float) );
239 shift += flat_part;
240 silk_apply_sine_window_FLP( x_windowed + shift, x_ptr + shift, 2, slope_part );
H A Dresidual_energy_FLP.c101 opus_int shift; local
105 shift = LPC_order + subfr_length;
108 silk_LPC_analysis_filter_FLP( LPC_res, a[ 0 ], x + 0 * shift, 2 * shift, LPC_order );
109 nrgs[ 0 ] = ( silk_float )( gains[ 0 ] * gains[ 0 ] * silk_energy_FLP( LPC_res_ptr + 0 * shift, subfr_length ) );
110 nrgs[ 1 ] = ( silk_float )( gains[ 1 ] * gains[ 1 ] * silk_energy_FLP( LPC_res_ptr + 1 * shift, subfr_length ) );
113 silk_LPC_analysis_filter_FLP( LPC_res, a[ 1 ], x + 2 * shift, 2 * shift, LPC_order );
114 nrgs[ 2 ] = ( silk_float )( gains[ 2 ] * gains[ 2 ] * silk_energy_FLP( LPC_res_ptr + 0 * shift, subfr_length ) );
115 nrgs[ 3 ] = ( silk_float )( gains[ 3 ] * gains[ 3 ] * silk_energy_FLP( LPC_res_ptr + 1 * shift, subfr_lengt
[all...]
/external/chromium_org/third_party/opus/src/src/
H A Dopus_encoder.c359 int shift; local
362 shift=celt_ilog2(Fs/(cutoff_Hz*3));
371 hp_mem[2*c] = hp_mem[2*c] + PSHR32(x - hp_mem[2*c], shift);
374 hp_mem[2*c+1] = hp_mem[2*c+1] + PSHR32(tmp - hp_mem[2*c+1], shift);
/external/chromium_org/third_party/skia/bench/
H A DRectBench.cpp29 RectBench(int shift, int stroke = 0) argument
30 : fShift(shift)
117 OvalBench(int shift, int stroke = 0) : RectBench(shift, stroke) {} argument
127 RRectBench(int shift, int stroke = 0) : RectBench(shift, stroke) {} argument
/external/chromium_org/third_party/skia/include/core/
H A DSkMath.h56 * Computes (numer1 << shift) / denom in full 64 intermediate precision.
60 int32_t SkDivBits(int32_t numer, int32_t denom, int shift);
185 * Return a*b/((1 << shift) - 1), rounding any fractional bits.
186 * Only valid if a and b are unsigned and <= 32767 and shift is > 0 and <= 8
188 static inline unsigned SkMul16ShiftRound(U16CPU a, U16CPU b, int shift) { argument
191 SkASSERT(shift > 0 && shift <= 8);
192 unsigned prod = SkMulS16(a, b) + (1 << (shift - 1));
193 return (prod + (prod >> shift)) >> shift;
[all...]

Completed in 5349 milliseconds

1234567891011>>