Open64 (mfef90, whirl2f, and IR tools)  TAG: version-openad; SVN changeset: 916
c_a_to_q.c File Reference
#include <math.h>
#include "defs.h"
#include "quad.h"
Include dependency graph for c_a_to_q.c:

Go to the source code of this file.

Classes

union  _dval
union  _ldblval

Defines

#define SIGNBIT(X)   (((_dval *)&(X))->fparts.sign)
#define EXPONENT(X)   (((_dval *)&(X))->fparts.exp)
#define MAXCOUNT   34
#define c_a_to_q   __c_a_to_q
#define MAXDIGITS   34
#define HI   (value.fwords.hi) /* top 64b of 124b integer */
#define LO   (value.fwords.lo) /* bottom 60b of 124b integer */

Functions

void c_qtenscale (_ldblval *, INT32, INT32 *)
QUAD c_a_to_q (char *str, INT *p_err)
static QUAD c_atoq (char *buffer, INT32 ndigit, INT32 exp)

Variables

static char * source_file = __FILE__

Define Documentation

#define c_a_to_q   __c_a_to_q

Definition at line 110 of file c_a_to_q.c.

#define EXPONENT (   X)    (((_dval *)&(X))->fparts.exp)

Definition at line 94 of file c_a_to_q.c.

Referenced by c_atoq().

#define HI   (value.fwords.hi) /* top 64b of 124b integer */

Referenced by c_atoq(), and c_qtoa().

#define LO   (value.fwords.lo) /* bottom 60b of 124b integer */

Referenced by c_atoq(), and c_qtoa().

#define MAXCOUNT   34

Definition at line 95 of file c_a_to_q.c.

#define MAXDIGITS   34

Definition at line 112 of file c_a_to_q.c.

Referenced by c_a_to_q().

#define SIGNBIT (   X)    (((_dval *)&(X))->fparts.sign)

Definition at line 93 of file c_a_to_q.c.

Referenced by c_atoq().


Function Documentation

QUAD c_a_to_q ( char *  str,
INT p_err 
)

Definition at line 129 of file c_a_to_q.c.

References c, c_atoq(), d, QUAD::hi, QUAD::lo, and MAXDIGITS.

Here is the call graph for this function:

static QUAD c_atoq ( char *  buffer,
INT32  ndigit,
INT32  exp 
) [static]

Definition at line 255 of file c_a_to_q.c.

References c_qtenscale(), _dval::d, EXPONENT, QUAD::hi, _ldblval::hi, HI, QUAD::lo, _ldblval::lo, LO, _ldblval::qparts, result, SIGNBIT, and U.

Referenced by c_a_to_q().

Here is the call graph for this function:

void c_qtenscale ( _ldblval ,
INT32  ,
INT32  
)

Referenced by c_atoq(), and c_qtoa().


Variable Documentation

char* source_file = __FILE__ [static]

Definition at line 49 of file c_a_to_q.c.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines