Back to index

glibc  2.9
Functions
e_sqrtl.c File Reference
#include <stdlib.h>
#include <soft-fp.h>
#include <quad.h>

Go to the source code of this file.

Functions

long double __ieee754_sqrtl (const long double a)

Function Documentation

long double __ieee754_sqrtl ( const long double  a)

Definition at line 27 of file e_sqrtl.c.

{
  FP_DECL_EX;
  FP_DECL_Q(A); FP_DECL_Q(C);
  long double c;
  long _round = 4;   /* dynamic rounding */

  FP_INIT_ROUNDMODE;
  FP_UNPACK_Q(A, a);
  FP_SQRT_Q(C, A);
  FP_PACK_Q(c, C);
  FP_HANDLE_EXCEPTIONS;
  return c;
}