Back to index

glibc  2.9
Defines | Functions
k_sin.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.


#define FUNC   sin
#define float_type   double
#define __CONCATX(a, b)   __CONCAT(a,b)


float_type __CONCATX (__kernel_, FUNC)

Define Documentation

#define __CONCATX (   a,
)    __CONCAT(a,b)

Definition at line 29 of file k_sin.c.

#define float_type   double

Definition at line 26 of file k_sin.c.

#define FUNC   sin

Definition at line 23 of file k_sin.c.

Function Documentation

float_type __CONCATX ( __kernel_  ,

Definition at line 32 of file k_sin.c.

  float_type sin_x, cos_x, sin_y, cos_y;
  if (iy == 0)
    return __m81_u(__CONCATX(__,FUNC)) (x);
  __asm__ __volatile__ ("fsincosx %2,%0:%1" : "=f" (cos_x), "=f" (sin_x)
                     : "f" (x));
  __asm__ __volatile__ ("fsincosx %2,%0:%1" : "=f" (cos_y), "=f" (sin_y)
                     : "f" (y));
  return sin_x * cos_y + cos_x * sin_y;

Here is the call graph for this function: