Back to index

glibc  2.9
Defines | Functions
ots_cvttx.c File Reference
#include "local-soft-fp.h"
#include "double.h"

Go to the source code of this file.

Defines

#define FP_ROUNDMODE   FP_RND_ZERO

Functions

void _OtsConvertFloatTX (double a)

Define Documentation

#define FP_ROUNDMODE   FP_RND_ZERO

Definition at line 28 of file ots_cvttx.c.


Function Documentation

void _OtsConvertFloatTX ( double  a)

Definition at line 31 of file ots_cvttx.c.

{
  FP_DECL_EX;
  FP_DECL_D(A);
  FP_DECL_Q(C);
  FP_DECL_RETURN(c);

  FP_UNPACK_RAW_D(A, a);
#if (2 * _FP_W_TYPE_SIZE) < _FP_FRACBITS_Q
  FP_EXTEND(Q,D,4,2,C,A);
#else
  FP_EXTEND(Q,D,2,1,C,A);
#endif
  FP_PACK_RAW_Q(c, C);
  FP_HANDLE_EXCEPTIONS;

  FP_RETURN(c);
}