Back to index

glibc  2.9
s_sincos.c File Reference
#include <math.h>
#include "math_private.h"
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


void __sincos (double x, double *sinx, double *cosx)

Function Documentation

void __sincos ( double  x,
double *  sinx,
double *  cosx 

Definition at line 27 of file s_sincos.c.

  int32_t ix;

  /* High word of x. */
  GET_HIGH_WORD (ix, x);

  /* |x| ~< pi/4 */
  ix &= 0x7fffffff;
  if (ix>=0x7ff00000)
      /* sin(Inf or NaN) is NaN */
      *sinx = *cosx = x - x;
      *sinx = __sin (x);
      *cosx = __cos (x);

Here is the call graph for this function:

Here is the caller graph for this function: