Open64 (mfef90, whirl2f, and IR tools)
TAG: version-openad; SVN changeset: 916
|
#include "arith.internal.h"
Go to the source code of this file.
Functions | |
static int | ar_cfcmp64 (const AR_CRAY_64 *a, const AR_CRAY_64 *b, int roundmode) |
static int | ar_cfcmp128 (const AR_CRAY_128 *a, const AR_CRAY_128 *b) |
static int | ar_ifcmp32 (const AR_IEEE_32 *a, const AR_IEEE_32 *b) |
int | ar_ifcmp64 (const AR_IEEE_64 *a, const AR_IEEE_64 *b) |
static int | ar_ifcmp128 (const AR_IEEE_128 *a, const AR_IEEE_128 *b) |
static AR_COMPARE_TYPE | ar_compare_integer (const ar_data *opnd1, const AR_TYPE *opnd1type, const ar_data *opnd2, const AR_TYPE *opnd2type) |
static AR_COMPARE_TYPE | ar_compare_float (const ar_data *opnd1, const AR_TYPE *opnd1type, const ar_data *opnd2, const AR_TYPE *opnd2type) |
AR_COMPARE_TYPE | AR_compare (const AR_DATA *op1, const AR_TYPE *opnd1type, const AR_DATA *op2, const AR_TYPE *opnd2type) |
Variables | |
static char | USMID [] = "\n%Z%%M% %I% %G% %U%\n" |
static char | rcsid [] = "$Id: compare.c,v 1.1.1.1 2002-05-22 20:06:18 dsystem Exp $" |
static int ar_cfcmp128 | ( | const AR_CRAY_128 * | a, |
const AR_CRAY_128 * | b | ||
) | [static] |
Definition at line 59 of file compare.c.
References ar_cfsub128().
Referenced by ar_compare_float().
static int ar_cfcmp64 | ( | const AR_CRAY_64 * | a, |
const AR_CRAY_64 * | b, | ||
int | roundmode | ||
) | [static] |
Definition at line 49 of file compare.c.
References ar_cfsub64().
Referenced by ar_compare_float().
AR_COMPARE_TYPE AR_compare | ( | const AR_DATA * | op1, |
const AR_TYPE * | opnd1type, | ||
const AR_DATA * | op2, | ||
const AR_TYPE * | opnd2type | ||
) |
Definition at line 421 of file compare.c.
References AR_CLASS, AR_CLASS_FLOAT, AR_CLASS_INT, AR_CLASS_POINTER, AR_Compare_EQ, ar_compare_float(), ar_compare_integer(), AR_Compare_Invalid, AR_Compare_NE, ar_dblshift(), ar_data::ar_i64, AR_Int_64_S, AR_Int_64_U, AR_INT_SIZE, AR_INT_SIZE_16, AR_INT_SIZE_32, AR_INT_SIZE_46, AR_INT_SIZE_64, AR_INT_SIZE_8, AR_POINTER_CHAR, AR_POINTER_FCTN, AR_POINTER_FORMAT, AR_INT_64::part1, AR_INT_64::part2, AR_INT_64::part3, AR_INT_64::part4, and sint64_artype.
Referenced by ar_power(), ar_sim(), folder_driver(), and main().
static AR_COMPARE_TYPE ar_compare_float | ( | const ar_data * | opnd1, |
const AR_TYPE * | opnd1type, | ||
const ar_data * | opnd2, | ||
const AR_TYPE * | opnd2type | ||
) | [static] |
Definition at line 348 of file compare.c.
References ar_cfcmp128(), ar_cfcmp64(), AR_Compare_EQ, AR_Compare_GT, AR_Compare_Invalid, AR_Compare_LT, AR_Compare_NE, AR_Compare_Unord, ar_decompose_complex(), ar_data::ar_f128, ar_data::ar_f64, AR_Float_Cray1_128, AR_Float_Cray1_64, AR_Float_Cray1_64_F, AR_Float_IEEE_DN_128, AR_Float_IEEE_DN_32, AR_Float_IEEE_DN_64, AR_Float_IEEE_NR_128, AR_Float_IEEE_NR_32, AR_Float_IEEE_NR_64, AR_Float_IEEE_UP_128, AR_Float_IEEE_UP_32, AR_Float_IEEE_UP_64, AR_Float_IEEE_ZE_128, AR_Float_IEEE_ZE_32, AR_Float_IEEE_ZE_64, AR_FLOAT_IS_COMPLEX, AR_FLOAT_SIMPLE, ar_data::ar_ieee128, ar_data::ar_ieee32, ar_data::ar_ieee64, ar_ifcmp128(), ar_ifcmp32(), ar_ifcmp64(), AR_STAT_INVALID_TYPE, AR_STAT_NEGATIVE, AR_STAT_UNDEFINED, AR_STAT_ZERO, and ROUND_MODE.
Referenced by AR_compare().
static AR_COMPARE_TYPE ar_compare_integer | ( | const ar_data * | opnd1, |
const AR_TYPE * | opnd1type, | ||
const ar_data * | opnd2, | ||
const AR_TYPE * | opnd2type | ||
) | [static] |
Definition at line 316 of file compare.c.
References AR_Compare_EQ, AR_Compare_GT, AR_Compare_LT, AR_SIGNED, AR_SIGNEDNESS, and ar_subtract_integer().
Referenced by AR_compare().
static int ar_ifcmp128 | ( | const AR_IEEE_128 * | a, |
const AR_IEEE_128 * | b | ||
) | [static] |
Definition at line 206 of file compare.c.
References AR_STAT_NEGATIVE, AR_STAT_OK, AR_STAT_UNDEFINED, AR_STAT_ZERO, AR_IEEE_128::coeff0, AR_IEEE_128::coeff1, AR_IEEE_128::coeff2, AR_IEEE_128::coeff3, AR_IEEE_128::coeff4, AR_IEEE_128::coeff5, AR_IEEE_128::coeff6, AR_IEEE_128::expo, HOST_IS_MIPS, IS_IEEE128_NaN, IS_IEEE128_NZ_COEFF, IS_MIPS128_NaN, and AR_IEEE_128::sign.
Referenced by ar_compare_float().
static int ar_ifcmp32 | ( | const AR_IEEE_32 * | a, |
const AR_IEEE_32 * | b | ||
) | [static] |
Definition at line 66 of file compare.c.
References AR_STAT_NEGATIVE, AR_STAT_OK, AR_STAT_UNDEFINED, AR_STAT_ZERO, AR_IEEE_32::coeff0, AR_IEEE_32::coeff1, AR_IEEE_32::expo, IS_IEEE32_NaN, IS_IEEE32_NZ_COEFF, and AR_IEEE_32::sign.
Referenced by ar_compare_float().
int ar_ifcmp64 | ( | const AR_IEEE_64 * | a, |
const AR_IEEE_64 * | b | ||
) |
Definition at line 118 of file compare.c.
References AR_STAT_NEGATIVE, AR_STAT_OK, AR_STAT_UNDEFINED, AR_STAT_ZERO, AR_IEEE_64::coeff0, AR_IEEE_64::coeff1, AR_IEEE_64::coeff2, AR_IEEE_64::coeff3, AR_IEEE_64::expo, IS_IEEE64_NaN, IS_IEEE64_NZ_COEFF, and AR_IEEE_64::sign.
Referenced by ar_compare_float(), ar_isqrt64(), and ar_sim().