Searched refs:FRACT_BITS (Results 1 – 17 of 17) sorted by relevance
104 #define FRACT_BITS 16 /* single precision */ macro114 #elif (SAMPLE_BITS == FRACT_BITS)119 #error SAMPLE_BITS different from FRACT_BITS or DFRACT_BITS not implemented!125 #define SGL_MASK ((1UL<<FRACT_BITS)-1) /* 16bit: (2^16)-1 = 0xFFFF */127 #define MAX_SHIFT_SGL (FRACT_BITS-1) /* maximum possible shift for FIXP_SGL values */131 #define FRACT_FIX_SCALE ((INT64(1)<<(FRACT_BITS-1)))141 …e FX_DBL2FXCONST_SGL(val) ( ( ((((val) >> (DFRACT_BITS-FRACT_BITS-1)) + 1) > (((LONG)1<<FRACT_BITS…142 …(FIXP_SGL)(SHORT)(((LONG)1<<(FRACT_BITS-1))-1):(FIXP_SGL)(SHORT)((((val) >> (DFRACT_BITS-FRACT_BIT…173 #define FX_ACC2FX_SGL(val) ((FIXP_SGL)((val)>>(ACCU_BITS-FRACT_BITS)))175 #define FX_SGL2FX_ACC(val) ((FIXP_ACC)((LONG)(val)<<(ACCU_BITS-FRACT_BITS)))[all …]
106 #define QFRACT_BITS FRACT_BITS121 #define QSS_BITS FRACT_BITS
194 *sine = (FIXP_DBL)((sl * ssign) << (DFRACT_BITS-FRACT_BITS)); in fixp_sin_cos_residual_inline()195 *cosine = (FIXP_DBL)((cl * csign) << (DFRACT_BITS-FRACT_BITS)); in fixp_sin_cos_residual_inline()
108 return ( (SHORT)((LONG)(CalcLdInt(b) - CalcLdInt(a))>>(FRACT_BITS-3)) ); in FDK_getNumOctavesDiv8()237 shift = (FRACT_BITS - 2 - INV_TABLE_BITS - preShift); in FDK_divide_MantExp()336 int result_e = -FRACT_BITS; in FDK_sqrt_MantExp()
512 num_bands = 2 * ((LONG)num_bands_div128 >> (FRACT_BITS - 7)); in numberOfBands()538 exact = (FIXP_SGL)(stop << (FRACT_BITS-8)); /* Shift left to gain some accuracy */ in CalcBands()549 current = (LONG)temp >> (FRACT_BITS-8); in CalcBands()782 intTemp = intTemp >> (FRACT_BITS - 1 /*sign*/ - 5 /* rescale */); in resetFreqBandTables()
117 #define MASK_M (((1 << (FRACT_BITS - EXP_BITS)) - 1) << EXP_BITS) /*!< Mask for extracting the man…
569 INT maxSfbNrg_e = -FRACT_BITS+NRG_EXP_OFFSET; /* start value for maximum search */ in calculateSbrEnvelope()742 maxGain_e = -FRACT_BITS; in calculateSbrEnvelope()1707 SCHAR sumRef_e = -FRACT_BITS; in calcAvgGain()1708 SCHAR sumEst_e = -FRACT_BITS; in calcAvgGain()
628 shift = (FRACT_BITS - 1 - ENV_EXP_FRACT - 1 + h_sbr_data->ampResolutionCurrentFrame - 3); in timeCompensateFirstEnvelope()
110 #define FRACT_ZERO FRACT_BITS-1
98 #define PE_CONSTPART_SHIFT FRACT_BITS
1145 tmp = (FIXP_DBL)((LONG)schur_div(tmp, input[0], FRACT_BITS)^(~sign)); in FDKaacEnc_AutoToParcor()
223 low = (low+(ACCU_R>>1)) >> (FRACT_BITS-1); /* round */ in mul_dbl_sgl_rnd()224 LONG high = u * ((v>>FRACT_BITS)<<1); in mul_dbl_sgl_rnd()564 div = schur_div(L_num, L_denum, FRACT_BITS); in fDivNorm()
455 maxVal |= (temp^(temp>>(FRACT_BITS-1))); in getScalefactor()
448 … (FIXP_BQS)(LONG)((state0 + (FIXP_DBL)(1<<(DFRACT_BITS-FRACT_BITS-2))) >> (DFRACT_BITS-FRACT_BITS-… in AdvanceFilter()
177 hParametricStereo->qmfDelayScale = FRACT_BITS-1; in PSEnc_Init()604 …andScale[band] = fixMax(0,CountLeadingBits(fixMax(maxVal[0][band],maxBandValue[band]))-FRACT_BITS); in psFindBestScaling()614 *dmxScale = fixMax(0,fixMin(FRACT_BITS, CountLeadingBits(FX_QMF2FX_DBL(maxValue)))); in psFindBestScaling()
140 scale = (FRACT_BITS-1-*qmfScale); in FDKsbrEnc_getEnergyFromCplxQmfData()233 scale = (FRACT_BITS-1-*qmfScale); in FDKsbrEnc_getEnergyFromCplxQmfDataFull()1832 hSbrCut->YBufferScale[0] = hSbrCut->YBufferScale[1] = FRACT_BITS-1; in FDKsbrEnc_InitExtractSbrEnvelope()
211 #define FX_DMX2SHRT(x) ((SHORT)((x)>>FRACT_BITS))