Lines Matching refs:FIXP_DBL
100 static const FIXP_DBL ldCoeff[MAX_LD_PRECISION] = {
142 FIXP_DBL CalcLdData(FIXP_DBL op) in CalcLdData()
152 void LdDataVector( FIXP_DBL *srcVector, in LdDataVector()
153 FIXP_DBL *destVector, in LdDataVector()
180 static const FIXP_DBL pow2Coeff[MAX_POW2_PRECISION] = {
216 FIXP_DBL mul_dbl_sgl_rnd (const FIXP_DBL op1, const FIXP_SGL op2) in mul_dbl_sgl_rnd()
218 FIXP_DBL prod; in mul_dbl_sgl_rnd()
228 return((FIXP_DBL)prod); in mul_dbl_sgl_rnd()
286 LNK_SECTION_CODE_L1 FIXP_DBL CalcInvLdData(FIXP_DBL x) in CalcInvLdData()
300 UINT lookup3f = lookup3 + (UINT)(LONG)fMultDiv2((FIXP_DBL)(0x0016302F),(FIXP_SGL)frac); in CalcInvLdData()
302 UINT lookup12 = (UINT)(LONG)fMult((FIXP_DBL)lookup1, (FIXP_DBL) lookup2); in CalcInvLdData()
303 UINT lookup = (UINT)(LONG)fMult((FIXP_DBL)lookup12, (FIXP_DBL) lookup3f); in CalcInvLdData()
305 FIXP_DBL retVal = (lookup<<3) >> exp; in CalcInvLdData()
324 static const FIXP_DBL ldIntCoeff[] = {
362 FIXP_DBL CalcLdInt(INT i) in CalcLdInt()
367 …FDK_ASSERT((193>0) && ((FIXP_DBL)ldIntCoeff[0]==(FIXP_DBL)0x80000001)); /* tab has to be initializ… in CalcLdInt()
389 static const FIXP_DBL invSqrtTab[SQRT_VALUES] = {
426 FIXP_DBL invSqrtNorm2(FIXP_DBL op, INT *shift) in invSqrtNorm2()
429 FIXP_DBL val = op ; in invSqrtNorm2()
430 FIXP_DBL reg1, reg2, regtmp ; in invSqrtNorm2()
470 FIXP_DBL sqrtFixp(FIXP_DBL op) in sqrtFixp()
473 FIXP_DBL tmp_inv = invSqrtNorm2(op, &tmp_exp); in sqrtFixp()
476 return( (FIXP_DBL) ( fMultDiv2( (op<<(tmp_exp-1)), tmp_inv ) << 2 )); in sqrtFixp()
489 FIXP_DBL schur_div(FIXP_DBL num, FIXP_DBL denum, INT count) in schur_div()
496 FDK_ASSERT (num>=(FIXP_DBL)0); in schur_div()
497 FDK_ASSERT (denum>(FIXP_DBL)0); in schur_div()
511 return (FIXP_DBL)(div << (DFRACT_BITS - count)); in schur_div()
519 FIXP_DBL fMultNorm(FIXP_DBL f1, FIXP_DBL f2, INT *result_e) in fMultNorm()
524 if ( (f1 == (FIXP_DBL)0) || (f2 == (FIXP_DBL)0) ) { in fMultNorm()
526 return (FIXP_DBL)0; in fMultNorm()
536 return (FIXP_DBL)product; in fMultNorm()
541 FIXP_DBL fDivNorm(FIXP_DBL L_num, FIXP_DBL L_denum, INT *result_e) in fDivNorm()
543 FIXP_DBL div; in fDivNorm()
546 FDK_ASSERT (L_num >= (FIXP_DBL)0); in fDivNorm()
547 FDK_ASSERT (L_denum > (FIXP_DBL)0); in fDivNorm()
549 if(L_num == (FIXP_DBL)0) in fDivNorm()
552 return ((FIXP_DBL)0); in fDivNorm()
571 FIXP_DBL fDivNorm(FIXP_DBL num, FIXP_DBL denom) in fDivNorm()
574 FIXP_DBL res; in fDivNorm()
582 if(res == (FIXP_DBL)(1<<(DFRACT_BITS-2)) && e == 1) in fDivNorm()
584 res = (FIXP_DBL)MAXVAL_DBL; in fDivNorm()
596 FIXP_DBL fDivNormHighPrec(FIXP_DBL num, FIXP_DBL denom, INT *result_e) in fDivNormHighPrec()
598 FIXP_DBL div; in fDivNormHighPrec()
601 FDK_ASSERT (num >= (FIXP_DBL)0); in fDivNormHighPrec()
602 FDK_ASSERT (denom > (FIXP_DBL)0); in fDivNormHighPrec()
604 if(num == (FIXP_DBL)0) in fDivNormHighPrec()
607 return ((FIXP_DBL)0); in fDivNormHighPrec()
626 FIXP_DBL CalcLog2(FIXP_DBL base_m, INT base_e, INT *result_e) in CalcLog2()
631 FIXP_DBL f2Pow( in f2Pow()
632 const FIXP_DBL exp_m, const INT exp_e, in f2Pow()
636 FIXP_DBL frac_part, result_m; in f2Pow()
643 frac_part = exp_m - (FIXP_DBL)(int_part << exp_bits); in f2Pow()
666 FIXP_DBL p; in f2Pow()
685 FIXP_DBL f2Pow( in f2Pow()
686 const FIXP_DBL exp_m, const INT exp_e in f2Pow()
689 FIXP_DBL result_m; in f2Pow()
698 FIXP_DBL fPow( in fPow()
699 FIXP_DBL base_m, INT base_e, in fPow()
700 FIXP_DBL exp_m, INT exp_e, in fPow()
705 FIXP_DBL base_lg2, ans_lg2, result; in fPow()
729 FIXP_DBL fLdPow( in fLdPow()
730 FIXP_DBL baseLd_m, in fLdPow()
732 FIXP_DBL exp_m, INT exp_e, in fLdPow()
737 FIXP_DBL ans_lg2, result; in fLdPow()
758 FIXP_DBL fLdPow( in fLdPow()
759 FIXP_DBL baseLd_m, INT baseLd_e, in fLdPow()
760 FIXP_DBL exp_m, INT exp_e in fLdPow()
763 FIXP_DBL result_m; in fLdPow()
771 FIXP_DBL fPowInt( in fPowInt()
772 FIXP_DBL base_m, INT base_e, in fPowInt()
777 FIXP_DBL result; in fPowInt()
782 if (base_m != (FIXP_DBL)0) { in fPowInt()
812 result = (FIXP_DBL)0; in fPowInt()
824 FIXP_DBL fLog2(FIXP_DBL x_m, INT x_e, INT *result_e) in fLog2()
826 FIXP_DBL result_m; in fLog2()
836 FIXP_DBL px2_m, x2_m; in fLog2()
866 enorm = DFRACT_BITS - fNorm((FIXP_DBL)x_e); in fLog2()
868 result_m = (result_m >> (enorm-1)) + ((FIXP_DBL)x_e << (DFRACT_BITS-1-enorm)); in fLog2()
880 FIXP_DBL fLog2(FIXP_DBL x_m, INT x_e) in fLog2()