Home
last modified time | relevance | path

Searched refs:CountLeadingBits (Results 1 – 20 of 20) sorted by relevance

/external/aac/libFDK/src/
Dfixpoint_math.cpp528 norm_f1 = CountLeadingBits(f1); in fMultNorm()
530 norm_f2 = CountLeadingBits(f2); in fMultNorm()
555 norm_num = CountLeadingBits(L_num); in fDivNorm()
560 norm_den = CountLeadingBits(L_denum); in fDivNorm()
610 norm_num = CountLeadingBits(num); in fDivNormHighPrec()
615 norm_den = CountLeadingBits(denom); in fDivNormHighPrec()
714 leadingBits = CountLeadingBits(fAbs(exp_m)); in fPow()
743 leadingBits = CountLeadingBits(fAbs(exp_m)); in fLdPow()
785 leadingBits = CountLeadingBits( base_m ); in fPowInt()
804 int ansScale = CountLeadingBits( result ); in fPowInt()
Dautocorr2nd.cpp175 mScale = CountLeadingBits(fAbs(ac->det)); in autoCorr2nd_real()
268 mScale = CountLeadingBits(fAbs(ac->det)); in autoCorr2nd_cplx()
/external/aac/libSBRenc/src/
Dsbr_misc.cpp247 INT shiftNum = CountLeadingBits(num); in FDKsbrEnc_LSI_divide_scale_fract()
248 INT shiftDenom = CountLeadingBits(denom); in FDKsbrEnc_LSI_divide_scale_fract()
249 INT shiftScale = CountLeadingBits(scale); in FDKsbrEnc_LSI_divide_scale_fract()
Dps_main.cpp356 int sc_num = CountLeadingBits(stereoScaleFactor) ; in DownmixPSQmfData()
357 int sc_denum = CountLeadingBits(tmpScaleFactor) ; in DownmixPSQmfData()
602 dynBandScale[band] = CountLeadingBits(fixMax(maxVal[0][band],maxBandValue[band])); in psFindBestScaling()
604 …dynBandScale[band] = fixMax(0,CountLeadingBits(fixMax(maxVal[0][band],maxBandValue[band]))-FRACT_B… in psFindBestScaling()
612 *dmxScale = fixMin(DFRACT_BITS, CountLeadingBits(maxValue)); in psFindBestScaling()
614 *dmxScale = fixMax(0,fixMin(FRACT_BITS, CountLeadingBits(FX_QMF2FX_DBL(maxValue)))); in psFindBestScaling()
Dton_corr.cpp252 numShift = CountLeadingBits(num) - 2; in FDKsbrEnc_CalculateTonalityQuotas()
255 denomShift = CountLeadingBits(denom); in FDKsbrEnc_CalculateTonalityQuotas()
263 commonShift = fixMin(commonShift,CountLeadingBits(tmp)); in FDKsbrEnc_CalculateTonalityQuotas()
Dps_encode.cpp690 INT scale, invScale = CountLeadingBits(invNrg); in calculateICC()
701 sc1 = CountLeadingBits( fixMax(fixp_abs(pwrCr[env][i]),fixp_abs(pwrCi[env][i])) ) ; in calculateICC()
708 sc1 = CountLeadingBits(invNrg); in calculateICC()
711 sc2 = CountLeadingBits(ICC); in calculateICC()
Denv_est.cpp299 scale = CountLeadingBits(max_val); in FDKsbrEnc_getEnergyFromCplxQmfData()
385 scale = CountLeadingBits(max_val); in FDKsbrEnc_getEnergyFromCplxQmfDataFull()
622 tmpScale = CountLeadingBits(nrg); in mhLoweringEnergy()
910 tmpScale = CountLeadingBits(nrgLeft); in calculateSbrEnvelope()
936 sc0 = CountLeadingBits(nrgLeft2); in calculateSbrEnvelope()
937 sc1 = CountLeadingBits(nrgRight); in calculateSbrEnvelope()
Dtran_det.cpp504 …shift = fixMax(0,CountLeadingBits(mean_val)-6); /* -6 to keep room for accumulating… in calculateThresholds()
881 dBf_e = (DFRACT_BITS-1 - tmp) - CountLeadingBits(dBf_int); in FDKsbrEnc_InitSbrFastTransientDetector()
Dmh_det.cpp237 shiftFac0 = CountLeadingBits(sfmOrig); in calculateFlatnessMeasure()
238 shiftFac1 = CountLeadingBits(sfmTransp); in calculateFlatnessMeasure()
/external/aac/libAACenc/src/
Dquantize.cpp189 ex = CountLeadingBits(accu); in FDKaacEnc_invQuantizeLines()
223 ex = CountLeadingBits(accu); in FDKaacEnc_invQuantizeLines()
335 scale = CountLeadingBits(diff); in FDKaacEnc_calcSfbDist()
391 scale = CountLeadingBits(diff); in FDKaacEnc_calcSfbQuantEnergyAndDist()
Dchannel_map.cpp351 int sc_brTot = CountLeadingBits(bitrateTot); in FDKaacEnc_InitElementBits()
431 int sc = CountLeadingBits(fixMax(maxChannelBits,averageBitsTot)); in FDKaacEnc_InitElementBits()
436 sc = CountLeadingBits(maxChannelBits); in FDKaacEnc_InitElementBits()
466 int sc = CountLeadingBits(fixMax(maxChannelBits,averageBitsTot)); in FDKaacEnc_InitElementBits()
Dnoisedet.cpp195 leadingBits = CountLeadingBits(maxVal); in FDKaacEnc_noiseDetect()
Daacenc_tns.cpp489 scale = CountLeadingBits(maxVal); in FDKaacEnc_ScaleUpSpectrum()
1267 shiftval = CountLeadingBits(maxVal); in FDKaacEnc_ParcorToLpc()
Dadj_thr.cpp897 …int minScale = fixMin(CountLeadingBits(sfbThrExp), CountLeadingBits(redVal) - (DFRACT_BITS-1-redVa… in FDKaacEnc_reduceThresholdsCBR()
1230 …int minScale = fixMin(CountLeadingBits(thrExp[elementId][ch][sfbGrp+sfb]), CountLeadingBits(redVal… in FDKaacEnc_correctThresh()
Dqc_main.cpp766 int sc_bitResTot = CountLeadingBits(totalBitreservoir); in FDKaacEnc_BitResRedistribution()
767 int sc_bitResTotMax = CountLeadingBits(totalBitreservoirMax); in FDKaacEnc_BitResRedistribution()
Daacenc.cpp532 sc = CountLeadingBits(encBitrate); in FDKaacEnc_Initialize()
Dpsy_main.cpp701 nrgShift = (CountLeadingBits(maxNrg)>>1) + (minSpecShift-4); in FDKaacEnc_psyMain()
/external/aac/libSBRdec/src/
Denv_extr.cpp1124 pointer_bits = DFRACT_BITS - 1 - CountLeadingBits((FIXP_DBL)(n+1)); in extractFrameInfo()
1161 pointer_bits = DFRACT_BITS - 1 - CountLeadingBits((FIXP_DBL)(n+1)); in extractFrameInfo()
1250 pointer_bits = DFRACT_BITS - 1 - CountLeadingBits((FIXP_DBL)(nL+nR+1)); in extractFrameInfo()
Denv_calc.cpp753 SCHAR charTemp = CountLeadingBits(maxGain); in calculateSbrEnvelope()
/external/aac/libFDK/include/
Dcommon_fix.h257 #define CountLeadingBits(x) fixnorm_D(x) macro