/external/aac/libAACdec/src/ |
H A D | aacdec_pns.cpp | 294 int i, shift, sfExponent; local 308 shift = sfExponent - specScale + 1 + noise_e; 311 if (shift>=0) { 312 shift = fixMin( shift, DFRACT_BITS-1 ); 314 spec [i] = fMultDiv2 (spec [i], sfMatissa) << shift; 317 shift = fixMin( -shift, DFRACT_BITS-1 ); 319 spec [i] = fMultDiv2 (spec [i], sfMatissa) >> shift;
|
/external/aac/libAACenc/src/ |
H A D | aacenc.cpp | 129 INT transportBits, prevBitRate, averageBitsPerFrame, shift = 0, iter=0; local 131 while ( (frameLength & ~((1<<(shift+1))-1)) == frameLength 132 && (coreSamplingRate & ~((1<<(shift+1))-1)) == coreSamplingRate ) 134 shift ++; 139 averageBitsPerFrame = (bitRate*(frameLength>>shift)) / (coreSamplingRate>>shift) / nSubFrames; 155 bitRate = FDKmin(bitRate, ((nChannelsEff * MIN_BUFSIZE_PER_EFF_CHAN)*(coreSamplingRate>>shift)) / (frameLength>>shift)) ;
|
H A D | aacenc_tns.cpp | 600 int shift = 0; local 601 FIXP_DBL tmp = invSqrtNorm2(value,&shift); 604 *sc += (2*shift); 1309 const INT shift = lpcGainFactor + 1; /* +1, because fMultDiv2 */ 1344 signal[j] = (tmp<<shift) + signal[j];
|
H A D | band_nrg.cpp | 199 INT shift = -leadingBits; local 201 spec = mdctSpectrum[j]>>shift;
|
H A D | psy_main.cpp | 661 /* Calc possible spectrum leftshift for each sfb (1 means: 1 bit left shift is possible without overflow) */ 682 /* Calc possible energy leftshift for each sfb (1 means: 1 bit left shift is possible without overflow) */ 709 /* do not shift more than 3 bits more to the left than signal without blockfloating point 714 FDK_ASSERT(finalShift >= 0); /* right shift is not allowed */ 833 INT shift = 1; local 835 psyData[ch]->mdctSpectrum[sfb] = psyData[ch]->mdctSpectrum[sfb] >> shift; 840 pSfbThreshold[ch][sfb] >>= (2*shift); 843 psyData[ch]->mdctScale += shift; /* update mdctScale */
|
/external/aac/libFDK/include/ |
H A D | FDK_trigFcts.h | 148 int shift = (31-scale-LD-1); local 153 s = ((LONG)residual) >> shift; 155 residual &= ( (1<<shift) - 1 );
|
/external/aac/libFDK/src/arm/ |
H A D | qmf_arm.cpp | 97 int shift = (anaQmf->no_channels>>6) + 1; local 109 *rSubbandPtr0++ = (*timeIn2-- >> 1) - (*timeIn0++ >> shift); 110 *rSubbandPtr1-- = (*timeIn1++ >> 1) + (*timeIn3-- >> shift);
|
H A D | scale_arm.cpp | 106 /* It performs a fMultDiv2 and increments shift by 1 */ 107 int shift = scalefactor + 1; local 110 shift = fixmin_I(shift,(INT)DFRACT_BITS-1); 112 if (shift >= 0) 124 tmp0 <<= shift; local 125 tmp1 <<= shift; local 126 tmp2 <<= shift; local 127 tmp3 <<= shift; local 137 tmp0 <<= shift; local 154 tmp0 >>= shift; local 155 tmp1 >>= shift; local 156 tmp2 >>= shift; local 157 tmp3 >>= shift; local 167 tmp0 >>= shift; local [all...] |
/external/aac/libFDK/src/ |
H A D | fixpoint_math.cpp | 381 description: delivers 1/sqrt(op) normalized to .5...1 and the shift value of the OUTPUT 420 delivers 1/sqrt(op) normalized to .5...1 and the shift value of the OUTPUT, 421 i.e. the denormalized result is 1/sqrt(op) = invSqrtNorm(op) * 2^(shift) 426 FIXP_DBL invSqrtNorm2(FIXP_DBL op, INT *shift) argument 433 *shift = 1 ; 438 /* normalize input, calculate shift value */ 440 *shift = fNormz(val) - 1; /* CountLeadingBits() is not necessary here since test value is always > 0 */ 441 val <<=*shift ; /* normalized input V */ local 442 *shift+=2 ; /* bias for exponent */ 453 if (*shift [all...] |
H A D | qmf.cpp | 459 int shift = (anaQmf->no_channels>>6) + 1; local 462 rSubband[M + i] = (timeIn[L - 1 - i]>>1) - (timeIn[i]>>shift); 463 rSubband[M - 1 - i] = (timeIn[L + i]>>1) + (timeIn[2 * L - 1 - i]>>shift); 466 dct_IV(rSubband, L, &shift); 493 int shift = 0; local 509 dct_IV(rSubband, L, &shift); 510 dst_IV(iSubband, L, &shift); 605 Should be realized with modulo adressing on a DSP instead of a true buffer shift 735 int shift = 0; local 742 dct_IV(pTimeOut+M, L, &shift); 770 int shift = 0; local [all...] |
/external/aac/libSBRdec/src/ |
H A D | env_calc.cpp | 889 int shift = fixMin(DFRACT_BITS-1,(int)(h_sbr_cal_env->filtBufferNoise_e - noise_e)); local 891 h_sbr_cal_env->filtBufferNoise[k] <<= shift; 894 int shift = fixMin(DFRACT_BITS-1,-(int)(h_sbr_cal_env->filtBufferNoise_e - noise_e)); local 896 h_sbr_cal_env->filtBufferNoise[k] >>= shift; 938 int shift = (int) (noise_e - final_e); local 940 filtBufferNoiseShift = shift; /* shifting of h_sbr_cal_env->filtBufferNoise[k] will be applied in function adjustTimeSlotHQ() */ 941 if (shift>=0) { 942 shift = fixMin(DFRACT_BITS-1,shift); 944 pNrgs->nrgSine[k] <<= shift; 1227 rescaleSubbandSamples(FIXP_DBL ** re, FIXP_DBL ** im, int lowSubband, int highSubband, int start_pos, int next_pos, int shift) argument 1346 SCHAR shift; local 1468 SCHAR shift, sum_e; local 1792 int shift = (int) (scale_change+1); local 1821 int shift = (int) (scale_change+1); local 1966 int shift; local [all...] |
H A D | env_dec.cpp | 609 int refLen, newLen, shift; local 628 shift = (FRACT_BITS - 1 - ENV_EXP_FRACT - 1 + h_sbr_data->ampResolutionCurrentFrame - 3); 629 deltaExp = deltaExp >> shift; 717 /* In case of the high amplitude resolution, 1 bit of the exponent gets lost by the shift.
|
H A D | transcendent.h | 128 int shift; local 138 shift = (int)(a_e - b_e); 140 shiftAbs = (shift>0)? shift : -shift; 142 shiftedMantissa = (shift>0)? (FX_SGL2FX_DBL(b_m) >> shiftAbs) : (FX_SGL2FX_DBL(a_m) >> shiftAbs); 143 otherMantissa = (shift>0)? FX_SGL2FX_DBL(a_m) : FX_SGL2FX_DBL(b_m); 144 *ptrSum_e = (shift>0)? a_e : b_e; 147 /* shift by 1 bit to avoid overflow */ 166 int shift; local 215 int preShift, postShift, index, shift; local 271 int preShift, postShift, index, shift; local 347 int shift = result_e - *destScale; local [all...] |
/external/aac/libSBRenc/src/ |
H A D | tran_det.cpp | 403 int shift; local 414 shift = fixMax(0,CountLeadingBits(mean_val)-6); /* -6 to keep room for accumulating upto N = 24 values */ 421 temp = ((FIXP_DBL)mean_val - ((FIXP_DBL)Energies[j][i] >> scaleFactor0))<<shift; 427 temp = ((FIXP_DBL)mean_val - ((FIXP_DBL)Energies[j][i] >> scaleFactor1))<<shift; 433 std_val = sqrtFixp(accu)>>shift; /* standard deviation */
|
/external/aac/libSYS/src/ |
H A D | wav_file.cpp | 486 int shift; local 495 shift = (nBufBits-nSigBits)-(32-bps); 499 shift += 8; 502 if (shift < 0) 503 tmp >>= -shift; 505 tmp <<= shift; local
|
/external/bison/lib/ |
H A D | quotearg.c | 143 int shift = uc % INT_BITS; local 144 int r = (*p >> shift) & 1; 145 *p ^= ((i & 1) ^ r) << shift; 515 its end, find an error, or come back to the initial shift
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/engines/ |
H A D | AESEngine.java | 223 private static int shift(int r, int shift) argument 225 return (r >>> shift) | (r << -shift); 256 return f2 ^ f4 ^ f8 ^ shift(f2 ^ f9, 8) ^ shift(f4 ^ f9, 16) ^ shift(f9, 24); 308 temp = subWord(shift(temp, 8)) ^ rcon[(i / KC)-1]; 487 r0 = T0[C0&255] ^ shift(T0[(C1>>8)&255], 24) ^ shift(T [all...] |
H A D | AESFastEngine.java | 553 private static int shift(int r, int shift) argument 555 return (r >>> shift) | (r << -shift); 586 return f2 ^ f4 ^ f8 ^ shift(f2 ^ f9, 8) ^ shift(f4 ^ f9, 16) ^ shift(f9, 24); 639 temp = subWord(shift(temp, 8)) ^ rcon[(i / KC) - 1];
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/math/ec/ |
H A D | IntArray.java | 268 public void addOneShifted(int shift) argument 270 if (shift >= m_ints.length) 272 m_ints = resizedInts(shift + 1); 275 m_ints[shift] ^= 1; 281 int shift = bits & 0x1F; 283 if (shift == 0) 301 int shiftInv = 32 - shift, prev = 0; 305 m_ints[i + words] ^= (next << shift) | prev; 311 private static int addShiftedByBits(int[] x, int[] y, int count, int shift) argument 313 int shiftInv = 32 - shift, pre 323 addShiftedByBits(int[] x, int xOff, int[] y, int yOff, int count, int shift) argument [all...] |
H A D | LongArray.java | 569 private static long shiftUp(long[] x, int xOff, int count, int shift) argument 571 int shiftInv = 64 - shift; 576 x[xOff + i] = (next << shift) | prev; 582 private static long shiftUp(long[] x, int xOff, long[] z, int zOff, int count, int shift) argument 584 int shiftInv = 64 - shift; 589 z[zOff + i] = (next << shift) | prev; 611 // int shift = bits & 0x3F; 613 // if (shift == 0) 631 // long carry = addShiftedByBits(m_ints, words, other.m_ints, 0, otherUsedLen, shift); 640 int shift 655 addShiftedUp(long[] x, int xOff, long[] y, int yOff, int count, int shift) argument 668 addShiftedDown(long[] x, int xOff, long[] y, int yOff, int count, int shift) argument [all...] |
/external/chromium_org/ash/wm/ |
H A D | app_list_controller.cc | 39 // The maximum shift in pixels when over-scroll happens. 509 const int shift = kMaxOverScrollShift * progress * dir; local 515 shifted.set_y(shifted.y() + shift); 517 shifted.set_x(shifted.x() + shift);
|
/external/chromium_org/ash/wm/workspace/ |
H A D | workspace_layout_manager.cc | 158 int shift = std::min(vertical_displacement, local 160 if (shift > 0) { 161 gfx::Point origin(window_bounds.x(), window_bounds.y() - shift);
|
/external/chromium_org/base/ |
H A D | bits.h | 23 int shift = (1 << i); local 24 uint32 x = value >> shift; 27 log += shift;
|
/external/chromium_org/base/i18n/ |
H A D | build_utf8_validator_tables.cc | 362 // the table: each state in the table starts with a shift value which indicates 378 // We want to set |shift| to the (0-based) index of the least-significant 382 uint8 shift = 7; local 386 while (shift > 0 && range_it->from % (1 << shift) != 0) { 387 --shift; 390 shifts.push_back(shift); 391 pos += 1 + (1 << (7 - shift)); 401 const uint8 shift = shifts[state_index]; local 408 table_printer.PrintValue(shift); [all...] |
/external/chromium_org/base/strings/ |
H A D | utf_offset_string_conversions.cc | 93 // in |adjustments_on_adjusted_string| as we go. |shift| keeps track of the 97 // length. These are characters that will change |shift| as soon as we're 99 // |shift|. 100 size_t shift = 0; local 104 ((adjusted_iter->original_offset + shift + 106 // Entire |adjusted_iter| (accounting for its shift and including its 111 adjusted_iter->original_offset += shift; 112 shift += currently_collapsing; 115 } else if ((adjusted_iter->original_offset + shift) > 117 // |first_iter| comes before the |adjusted_iter| (as adjusted by |shift|) [all...] |