Back to index

glibc  2.9
Defines | Functions
k_cos.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   cos
#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_cos.c.

#define float_type   double

Definition at line 26 of file k_cos.c.

#define FUNC   cos

Definition at line 23 of file k_cos.c.

Function Documentation

float_type __CONCATX ( __kernel_  ,

Definition at line 32 of file k_cos.c.

  float_type sin_x, cos_x, sin_y, cos_y;
  __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 cos_x * cos_y - sin_x * sin_y;

Here is the call graph for this function: