#include "quad.h"#include "stdio.h"#include "stdlib.h"#include "math.h"#include <fp_class.h>#include "defs.h"#include "quadsim.h"
Go to the source code of this file.
Classes | |
| union | du |
Defines | |
| #define | DMANTWIDTH 52 |
| #define | DEXPWIDTH 11 |
| #define | DSIGNMASK 0x7fffffffffffffffll |
| #define | DEXPMASK 0x800fffffffffffffll |
| #define | DQNANBITMASK 0xfff7ffffffffffffll |
| #define | MANTWIDTH 23 |
| #define | EXPWIDTH 8 |
| #define | SIGNMASK 0x7fffffff |
| #define | EXPMASK 0x807fffff |
| #define | QNANBITMASK 0xffbfffff |
| #define | c_ji_qint __c_ji_qint |
| #define | c_ji_quint __c_ji_quint |
| #define | c_ki_qint __c_ki_qint |
| #define | c_ki_quint __c_ki_quint |
| #define | c_sngl_q __c_sngl_q |
| #define | c_dble_q __c_dble_q |
| #define | c_q_flotj __c_q_flotj |
| #define | c_q_flotju __c_q_flotju |
| #define | c_q_flotk __c_q_flotk |
| #define | c_q_flotku __c_q_flotku |
| #define | c_q_ext __c_q_ext |
| #define | c_q_extd __c_q_extd |
| #define | c_q_trunc __c_q_trunc |
| #define | c_fp_class_q __c_fp_class_q |
Functions | |
| INT | c_q_le (QUAD x, QUAD y, INT *p_err) |
| INT | c_q_ge (QUAD x, QUAD y, INT *p_err) |
| INT32 | c_ji_qint (QUAD x, INT *p_err) |
| INT32 | c_fp_class_q (QUAD x) |
| UINT32 | c_ji_quint (QUAD x, INT *p_err) |
| INT64 | c_ki_qint (QUAD x, INT *p_err) |
| UINT64 | c_ki_quint (QUAD x, INT *p_err) |
| float | c_sngl_q (QUAD x, INT *p_err) |
| double | c_dble_q (QUAD x, INT *p_err) |
| QUAD | c_q_flotj (INT32 n, INT *p_err) |
| QUAD | c_q_flotju (UINT32 n, INT *p_err) |
| QUAD | c_q_flotk (INT64 n, INT *p_err) |
| QUAD | c_q_flotku (UINT64 n, INT *p_err) |
| QUAD | c_q_ext (float x, INT *p_err) |
| QUAD | c_q_extd (double x, INT *p_err) |
| QUAD | c_q_trunc (QUAD x, INT *p_err) |
| double | trunc (double x) |
| INT | fp_class_d (double x) |
Variables | |
| static const du | m_twop31 |
| static const du | twop31m1 |
| static const du | twop32m1 |
| static const du | twop52 |
| static const du | twop62 |
| static const du | m_twop63 |
| static const du | twop63 |
| static const du | twop64 |
| static const du | twopm916 |
| static const du | myinfinity |
| #define c_ki_qint __c_ki_qint |
Definition at line 231 of file quadsim.c.
Referenced by c_ji_quint().
| #define c_q_trunc __c_q_trunc |
Definition at line 527 of file quadsim.c.
Referenced by c_ji_qint(), c_ji_quint(), c_ki_qint(), and c_ki_quint().
| #define DQNANBITMASK 0xfff7ffffffffffffll |
Definition at line 60 of file quadsim.c.
Referenced by fp_class_d().
| #define DSIGNMASK 0x7fffffffffffffffll |
Definition at line 58 of file quadsim.c.
Referenced by fp_class_d().
Definition at line 695 of file quadsim.c.
References c_q_ge, c_q_le, du::d, fp_class_d(), FP_NEG_DENORM, FP_NEG_NORM, FP_POS_DENORM, FP_POS_NORM, QUAD::hi, and QUAD::lo.

| INT fp_class_d | ( | double | x | ) |
Definition at line 664 of file quadsim.c.
References DQNANBITMASK, DSIGNMASK, FP_POS_DENORM, FP_POS_INF, FP_POS_NORM, FP_POS_ZERO, FP_QNAN, and FP_SNAN.
| double trunc | ( | double | x | ) |
Referenced by _unit_trunc(), c_q_trunc(), and d_int().
const du myinfinity [static] |
1.7.1