Home | History | Annotate | Download | only in include

Lines Matching refs:sine

141  * Calculates coarse lookup index and sign for sine.
144 static inline FIXP_DBL fixp_sin_cos_residual_inline(FIXP_DBL x, int scale, FIXP_DBL *sine, FIXP_DBL *cosine)
159 /* Sine sign symmetry */
181 /* Cosine/Sine simetry for angles greater than PI/4 */
194 *sine = (FIXP_DBL)((sl * ssign) << (DFRACT_BITS-FRACT_BITS));
197 *sine = (FIXP_DBL)(sl * ssign);
206 * \brief Calculate cosine and sine value each of 2 angles different angle values.
215 FIXP_DBL residual, error0, error1, sine, cosine;
216 residual = fixp_sin_cos_residual_inline(x1, scale, &sine, &cosine);
217 error0 = fMultDiv2(sine, residual);
220 *out++ = sine + (error1<<1);
222 residual = fixp_sin_cos_residual_inline(x2, scale, &sine, &cosine);
223 error0 = fMultDiv2(sine, residual);
226 *out++ = sine + (error1<<1);