Back to index

glibc  2.9
Functions
w_sqrt.c File Reference
#include "math.h"
#include "math_private.h"
#include <fenv_libc.h>

Go to the source code of this file.

Functions

double __sqrt (double x)

Function Documentation

double __sqrt ( double  x)

Definition at line 29 of file w_sqrt.c.

{
#ifdef _IEEE_LIBM
  return __ieee754_sqrt (x);
#else
  double z;
  z = __ieee754_sqrt (x);
  if (_LIB_VERSION == _IEEE_ || (x != x))
    return z;

  if (x < 0.0)
    return __kernel_standard (x, x, 26);  /* sqrt(negative) */
  else
    return z;
#endif
}

Here is the call graph for this function: