Lines Matching refs:residual
158 FIXP_DBL residual; in fixp_sin_cos_residual_inline() local
164 residual = fMult(x, FL2FXCONST_DBL(1.0 / M_PI)); in fixp_sin_cos_residual_inline()
165 s = ((LONG)residual) >> shift; in fixp_sin_cos_residual_inline()
167 residual &= ((1 << shift) - 1); in fixp_sin_cos_residual_inline()
168 residual = fMult(residual, FL2FXCONST_DBL(M_PI / 4.0)) << 2; in fixp_sin_cos_residual_inline()
169 residual <<= scale; in fixp_sin_cos_residual_inline()
216 return residual; in fixp_sin_cos_residual_inline()
230 FIXP_DBL residual, error0, error1, sine, cosine; in inline_fixp_cos_sin() local
231 residual = fixp_sin_cos_residual_inline(x1, scale, &sine, &cosine); in inline_fixp_cos_sin()
232 error0 = fMultDiv2(sine, residual); in inline_fixp_cos_sin()
233 error1 = fMultDiv2(cosine, residual); in inline_fixp_cos_sin()
244 residual = fixp_sin_cos_residual_inline(x2, scale, &sine, &cosine); in inline_fixp_cos_sin()
245 error0 = fMultDiv2(sine, residual); in inline_fixp_cos_sin()
246 error1 = fMultDiv2(cosine, residual); in inline_fixp_cos_sin()