Open64 (mfef90, whirl2f, and IR tools)  TAG: version-openad; SVN changeset: 916
convert.c File Reference
#include "arith.internal.h"
#include "int64.h"
#include <string.h>
Include dependency graph for convert.c:

Go to the source code of this file.

Defines

#define COEFF_BIT_OFF   (AR_IEEE32_C0_BITS - AR_IEEE64_C0_BITS)
#define COEFF_BIT_OFF   (AR_IEEE32_C0_BITS - AR_IEEE64_C0_BITS)
#define COEFF_BIT_OFF   (AR_IEEE128_C0_BITS - AR_IEEE64_C0_BITS)
#define COEFF_BIT_OFF   (AR_IEEE128_C0_BITS - AR_IEEE64_C0_BITS)

Functions

int ar_cfix64 (AR_INT_64 *fix, const AR_CRAY_64 *flt, int bitsize)
int ar_cflt64 (AR_CRAY_64 *flt, const AR_INT_64 *fix, int is_unsigned)
int ar_cfix128 (AR_INT_64 *fix, const AR_CRAY_128 *flt, int bitsize)
int ar_cflt128 (AR_CRAY_128 *flt, const AR_INT_64 *fix, int is_unsigned)
int ar_ifix32 (AR_INT_64 *fix, const AR_IEEE_32 *flt, int bitsize, int roundmode)
int ar_ifix64 (AR_INT_64 *fix, const AR_IEEE_64 *flt, int bitsize, int roundmode)
int ar_ifix128 (AR_INT_64 *fix, const AR_IEEE_128 *flt, int bitsize, int roundmode)
int ar_iflt32 (AR_IEEE_32 *flt, const AR_INT_64 *fix, int is_unsigned, int roundmode)
int ar_iflt64 (AR_IEEE_64 *flt, const AR_INT_64 *fix, int is_unsigned, int roundmode)
int ar_iflt128 (AR_IEEE_128 *flt, const AR_INT_64 *fix, int is_unsigned, int roundmode)
int ar_itoc64 (AR_CRAY_64 *to, const AR_IEEE_64 *from, int roundmode)
int ar_itoc128 (AR_CRAY_128 *to, const AR_IEEE_128 *from, int roundmode)
int ar_i64toc128 (AR_CRAY_128 *to, const AR_IEEE_64 *from)
int ar_ctoi64 (AR_IEEE_64 *to, const AR_CRAY_64 *from)
int ar_ctoi128 (AR_IEEE_128 *to, const AR_CRAY_128 *from)
int ar_c128toi64 (AR_IEEE_64 *to, const AR_CRAY_128 *from)
int ar_c128to64 (AR_CRAY_64 *s, const AR_CRAY_128 *d)
int ar_c64to128 (AR_CRAY_128 *d, const AR_CRAY_64 *s)
int ar_i64to32 (AR_IEEE_32 *s, const AR_IEEE_64 *d, const int roundmode)
int ar_i32to64 (AR_IEEE_64 *d, const AR_IEEE_32 *s)
int ar_i128to64 (AR_IEEE_64 *d, const AR_IEEE_128 *q, const int roundmode)
int ar_i64to128 (AR_IEEE_128 *q, const AR_IEEE_64 *d)
int ar_crnd64 (AR_CRAY_64 *rnd, const AR_CRAY_64 *flt)
int ar_crnd128 (AR_CRAY_128 *rnd, const AR_CRAY_128 *flt)

Variables

static char USMID [] = "\n%Z%%M% %I% %G% %U%\n"
static char rcsid [] = "$Id: convert.c,v 1.2 2003-11-04 16:04:58 eraxxon Exp $"

Define Documentation


Function Documentation

int ar_crnd128 ( AR_CRAY_128 rnd,
const AR_CRAY_128 flt 
)

Definition at line 1372 of file convert.c.

References ar_cfadd128(), AR_CRAY_128::coeff0, AR_CRAY_128::coeff1, AR_CRAY_128::coeff2, AR_CRAY_128::coeff3, AR_CRAY_128::coeff4, and AR_CRAY_128::coeff5.

Referenced by AR_round_int_div().

Here is the call graph for this function:

int ar_crnd64 ( AR_CRAY_64 rnd,
const AR_CRAY_64 flt 
)

Definition at line 1349 of file convert.c.

References ar_cfadd64(), AR_CRAY_64::coeff0, AR_CRAY_64::coeff1, and AR_CRAY_64::coeff2.

Referenced by AR_round_int_div().

Here is the call graph for this function:

int ar_iflt32 ( AR_IEEE_32 flt,
const AR_INT_64 fix,
int  is_unsigned,
int  roundmode 
)
int ar_iflt64 ( AR_IEEE_64 flt,
const AR_INT_64 fix,
int  is_unsigned,
int  roundmode 
)

Definition at line 512 of file convert.c.

References ar_i64norm(), AR_IEEE64_COEFF_BITS, AR_IEEE64_EXPO_BIAS, AR_IEEE64_EXPO_BITS, COPY64, INT64TOIEEE64, NEG64, AR_INT_64::part1, AR_IEEE_64::sign, SIGNBIT, and val.

Referenced by ar_convert_to_float(), ar_sim(), and main().

Here is the call graph for this function:


Variable Documentation

char rcsid[] = "$Id: convert.c,v 1.2 2003-11-04 16:04:58 eraxxon Exp $" [static]

Definition at line 1399 of file convert.c.

char USMID[] = "\n%Z%%M% %I% %G% %U%\n" [static]

Definition at line 1398 of file convert.c.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines