Back to index

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

Go to the source code of this file.

Functions

TFtype __extendsftf2 (SFtype a)

Function Documentation

TFtype __extendsftf2 ( SFtype  a)

Definition at line 36 of file extendsftf2.c.

{
  FP_DECL_EX;
  FP_DECL_S(A);
  FP_DECL_Q(R);
  TFtype r;

  FP_INIT_ROUNDMODE;
  FP_UNPACK_RAW_S(A, a);
#if (2 * _FP_W_TYPE_SIZE) < _FP_FRACBITS_Q
  FP_EXTEND(Q,S,4,1,R,A);
#else
  FP_EXTEND(Q,S,2,1,R,A);
#endif
  FP_PACK_RAW_Q(r, R);
  FP_HANDLE_EXCEPTIONS;

  return r;
}