Back to index

glibc  2.9
Functions
extendsfdf2.c File Reference
#include "soft-fp.h"
#include "single.h"
#include "double.h"

Go to the source code of this file.

Functions

DFtype __extendsfdf2 (SFtype a)

Function Documentation

DFtype __extendsfdf2 ( SFtype  a)

Definition at line 36 of file extendsfdf2.c.

{
  FP_DECL_EX;
  FP_DECL_S(A);
  FP_DECL_D(R);
  DFtype r;

  FP_INIT_ROUNDMODE;
  FP_UNPACK_RAW_S(A, a);
#if _FP_W_TYPE_SIZE < _FP_FRACBITS_D
  FP_EXTEND(D,S,2,1,R,A);
#else
  FP_EXTEND(D,S,1,1,R,A);
#endif
  FP_PACK_RAW_D(r, R);
  FP_HANDLE_EXCEPTIONS;

  return r;
}

Here is the caller graph for this function: