Back to index

glibc  2.9
Defines | Functions
q_qtoll.c File Reference
#include "soft-fp.h"
#include "quad.h"

Go to the source code of this file.

Defines

#define FP_ROUNDMODE   FP_RND_ZERO

Functions

long long _q_qtoll (const long double a)

Define Documentation

#define FP_ROUNDMODE   FP_RND_ZERO

Definition at line 23 of file q_qtoll.c.


Function Documentation

long long _q_qtoll ( const long double  a)

Definition at line 27 of file q_qtoll.c.

{
  FP_DECL_EX;
  FP_DECL_Q(A);
  unsigned long long r;

  FP_UNPACK_RAW_Q(A, a);
  FP_TO_INT_Q(r, A, 64, 1);
  FP_HANDLE_EXCEPTIONS;

  return r;
}