fastsincosf: fast single precision Sine and Cosine
— : void fastsincosf (float x, float s, float c)
Weak alias: sincosf
C Prototype:
void fastsincosf (float x, float s, float c);
Inputs:
float x - the single precision input value.
Outputs:
float s - Sine of x.
float c - Cosine of x.
Fortran Subroutine Interface:
SUBROUTINE FASTSINCOSF(X,S,C)
Inputs:
REAL X - the single precision input value.
Outputs:
REAL S - Sine of X.
REAL C - Cosine of X.
Notes:
fastsincosf computes the Sine and Cosine functions of its argument x.
This function can provide a significant performance advantage for
applications that require both the sine and cosine of an angle,
such as axis and matrix rotation.
This is a relaxed
version of sincosf, suitable for use with fastmath compiler flags or
applications not requiring full error handling. Denormal inputs may
produce unpredictable results. Error inputs produce C99 return values.
The routine is accurate to better than 1 ulp over the valid
input range.