Back to index

glibc  2.9
s_sinl.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.


long double __sinl (long double x)

Function Documentation

long double __sinl ( long double  x)

Definition at line 53 of file s_sinl.c.

       long double y[2],z=0.0L;
       int64_t n, ix;

    /* High word of x. */

    /* |x| ~< pi/4 */
       ix &= 0x7fffffffffffffffLL;
       if(ix <= 0x3ffe921fb54442d1LL)
         return __kernel_sinl(x,z,0);

    /* sin(Inf or NaN) is NaN */
       else if (ix>=0x7fff000000000000LL) return x-x;

    /* argument reduction needed */
       else {
           n = __ieee754_rem_pio2l(x,y);
           switch(n&3) {
              case 0: return  __kernel_sinl(y[0],y[1],1);
              case 1: return  __kernel_cosl(y[0],y[1]);
              case 2: return -__kernel_sinl(y[0],y[1],1);
                     return -__kernel_cosl(y[0],y[1]);

Here is the call graph for this function:

Here is the caller graph for this function: