Back to index

glibc  2.9
Defines | Functions
q_qtoull.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

unsigned long long _Q_qtoull (const long double a)

Define Documentation

#define FP_ROUNDMODE   FP_RND_ZERO

Definition at line 23 of file q_qtoull.c.


Function Documentation

unsigned long long _Q_qtoull ( const long double  a)

Definition at line 27 of file q_qtoull.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;
}