Back to index

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

Go to the source code of this file.

Functions

long double _Q_stoq (const float a)

Function Documentation

long double _Q_stoq ( const float  a)

Definition at line 27 of file q_stoq.c.

{
  FP_DECL_EX;
  FP_DECL_S(A);
  FP_DECL_Q(C);
  long double c;

  FP_UNPACK_RAW_S(A, a);
#if (2 * _FP_W_TYPE_SIZE) < _FP_FRACBITS_Q
  FP_EXTEND(Q,S,4,1,C,A);
#else
  FP_EXTEND(Q,S,2,1,C,A);
#endif
  FP_PACK_RAW_Q(c, C);
  FP_HANDLE_EXCEPTIONS;
  return c;
}