Back to index

glibc  2.9
Functions
q_lltoq.c File Reference
#include "soft-fp.h"
#include "quad.h"

Go to the source code of this file.

Functions

long double _Q_lltoq (const long long a)

Function Documentation

long double _Q_lltoq ( const long long  a)

Definition at line 26 of file q_lltoq.c.

{
  FP_DECL_EX;
  FP_DECL_Q(C);
  long double c;
  long long b = a;

  FP_FROM_INT_Q(C, b, 64, unsigned long long);
  FP_PACK_RAW_Q(c, C);
  FP_CLEAR_EXCEPTIONS;
  FP_HANDLE_EXCEPTIONS;
  return c;
}