Back to index

glibc  2.9
w_sqrtf.c File Reference
#include <math.h>
#include "math_private.h"

Go to the source code of this file.


float sqrt (float x)

Function Documentation

float sqrt ( float  x)

Definition at line 30 of file w_sqrtf.c.

#ifdef _IEEE_LIBM
       return __ieee754_sqrtf(x);
       float z;
       z = __ieee754_sqrtf(x);
       if(_LIB_VERSION == _IEEE_ || __isnanf(x)) return z;
       if(x<(float)0.0) {
           /* sqrtf(negative) */
           return (float)__kernel_standard((double)x,(double)x,126);
       } else
           return z;

Here is the call graph for this function: