12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- #include "math.h"
- #include "math_private.h"
- #ifdef __STDC__
- float sqrtf(float x)
- #else
- float sqrtf(x)
- float x;
- #endif
- {
- #ifdef _IEEE_LIBM
- return __ieee754_sqrt(x);
- #else
- float z;
- z = __ieee754_sqrt(x);
- if(_LIB_VERSION == _IEEE_ || isnan(x)) return z;
- if(x<0.0) {
- return __kernel_standard(x,x,26);
- } else
- return z;
- #endif
- }
|