#include "arith.internal.h"#include "int64.h"#include <string.h>
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 COEFF_BIT_OFF (AR_IEEE128_C0_BITS - AR_IEEE64_C0_BITS) |
| #define COEFF_BIT_OFF (AR_IEEE128_C0_BITS - AR_IEEE64_C0_BITS) |
| #define COEFF_BIT_OFF (AR_IEEE32_C0_BITS - AR_IEEE64_C0_BITS) |
| #define COEFF_BIT_OFF (AR_IEEE32_C0_BITS - AR_IEEE64_C0_BITS) |
Referenced by ar_i128to64(), ar_i32to64(), ar_i64to128(), and ar_i64to32().
| int ar_c128to64 | ( | AR_CRAY_64 * | s, | |
| const AR_CRAY_128 * | d | |||
| ) |
Definition at line 901 of file convert.c.
References AR_STAT_NEGATIVE, AR_STAT_OK, AR_STAT_ZERO, AR_CRAY_128::coeff0, AR_CRAY_128::coeff1, AR_CRAY_128::coeff2, CRAY128TO64, AR_CRAY_128::expo, and AR_CRAY_128::sign.
Referenced by ar_convert_to_float(), and main().
| int ar_c128toi64 | ( | AR_IEEE_64 * | to, | |
| const AR_CRAY_128 * | from | |||
| ) |
Definition at line 839 of file convert.c.
References AR_CRAY64_COEFF_BITS, AR_CRAY_C3_BITS, AR_CRAY_EXPO_BIAS, AR_CRAY_MAX_EXPO, ar_i64norm(), AR_IEEE64_C0_BITS, AR_IEEE64_COEFF_BITS, AR_IEEE64_EXPO_BIAS, AR_IEEE64_MAX_EXPO, AR_IEEE64_ROUND_BITS, AR_ROUND_NEAREST, AR_STAT_NEGATIVE, AR_STAT_OK, AR_STAT_OVERFLOW, AR_IEEE_64::coeff0, AR_CRAY_128::coeff3, AR_IEEE_64::coeff3, AR_CRAY_128::coeff4, AR_CRAY_128::coeff5, CRAY128TO64, CRAY64TOINT64, AR_IEEE_64::expo, AR_CRAY_128::expo, HOST_IS_MIPS, INT64TOIEEE64, MASKR, QNaNIEEE64, SHLEFTIEEE64, AR_CRAY_128::sign, AR_IEEE_64::sign, and ZEROIEEE64.
Referenced by ar_convert_to_float(), and main().

| int ar_c64to128 | ( | AR_CRAY_128 * | d, | |
| const AR_CRAY_64 * | s | |||
| ) |
Definition at line 918 of file convert.c.
References AR_STAT_NEGATIVE, AR_STAT_OK, AR_STAT_ZERO, AR_CRAY_64::coeff0, AR_CRAY_64::coeff1, AR_CRAY_64::coeff2, CRAY64TO128, AR_CRAY_64::expo, and AR_CRAY_64::sign.
Referenced by ar_convert_to_float().
| int ar_cfix128 | ( | AR_INT_64 * | fix, | |
| const AR_CRAY_128 * | flt, | |||
| int | bitsize | |||
| ) |
Definition at line 141 of file convert.c.
References AR_CRAY64_COEFF_BITS, AR_CRAY_EXPO_BIAS, AR_STAT_INEXACT, AR_STAT_NEGATIVE, AR_STAT_OK, AR_STAT_OVERFLOW, AR_STAT_SEMIVALID, AR_STAT_UNDERFLOW, AR_STAT_ZERO, AR_CRAY_128::coeff0, AR_CRAY_128::coeff1, AR_CRAY_128::coeff2, AR_CRAY_128::coeff3, AR_CRAY_128::coeff4, AR_CRAY_128::coeff5, CRAY128TO64, CRAY64TOINT64, AR_CRAY_128::expo, INC64, NOT64, AR_INT_64::part1, AR_INT_64::part2, AR_INT_64::part3, AR_INT_64::part4, SHLEFT64, SHLEFTCRAY128, SHRIGHT64X, AR_CRAY_128::sign, and ZERO64.
Referenced by ar_convert_to_integral(), and main().
| int ar_cfix64 | ( | AR_INT_64 * | fix, | |
| const AR_CRAY_64 * | flt, | |||
| int | bitsize | |||
| ) |
Definition at line 49 of file convert.c.
References AR_CRAY64_COEFF_BITS, AR_CRAY_EXPO_BIAS, AR_STAT_INEXACT, AR_STAT_NEGATIVE, AR_STAT_OK, AR_STAT_OVERFLOW, AR_STAT_SEMIVALID, AR_STAT_UNDERFLOW, AR_STAT_ZERO, AR_CRAY_64::coeff0, AR_CRAY_64::coeff1, AR_CRAY_64::coeff2, CRAY64TOINT64, AR_CRAY_64::expo, INC64, NOT64, AR_INT_64::part1, AR_INT_64::part2, AR_INT_64::part3, AR_INT_64::part4, SHLEFT64, SHRIGHT64X, AR_CRAY_64::sign, and ZERO64.
Referenced by ar_convert_to_integral(), and main().
| int ar_cflt128 | ( | AR_CRAY_128 * | flt, | |
| const AR_INT_64 * | fix, | |||
| int | is_unsigned | |||
| ) |
Definition at line 200 of file convert.c.
References AR_CRAY64_COEFF_BITS, AR_CRAY_C0_BITS, AR_CRAY_C3_BITS, AR_CRAY_EXPO_BIAS, AR_CRAY_EXPO_BITS, AR_STAT_NEGATIVE, AR_STAT_OK, AR_STAT_ZERO, AR_CRAY_128::coeff0, AR_CRAY_128::coeff3, COPY64, CRAY64TO128, AR_CRAY_128::expo, INT64TOCRAY64, NEG64, AR_INT_64::part1, AR_INT_64::part2, AR_INT_64::part3, AR_INT_64::part4, SHLEFTCRAY128, SHRIGHT64, AR_CRAY_128::sign, SIGNBIT, val, and ZEROCRAY128.
Referenced by ar_convert_to_float(), and main().
| int ar_cflt64 | ( | AR_CRAY_64 * | flt, | |
| const AR_INT_64 * | fix, | |||
| int | is_unsigned | |||
| ) |
Definition at line 100 of file convert.c.
References AR_CRAY64_COEFF_BITS, AR_CRAY_C0_BITS, AR_CRAY_EXPO_BIAS, AR_CRAY_EXPO_BITS, AR_STAT_INEXACT, AR_STAT_NEGATIVE, AR_STAT_OK, AR_STAT_ZERO, AR_CRAY_64::coeff0, COPY64, AR_CRAY_64::expo, INT64TOCRAY64, NEG64, AR_INT_64::part1, AR_INT_64::part2, AR_INT_64::part3, AR_INT_64::part4, SHLEFTCRAY64, SHRIGHT64, AR_CRAY_64::sign, SIGNBIT, val, and ZEROCRAY64.
Referenced by ar_convert_to_float(), and main().
| 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().

| 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().

| int ar_ctoi128 | ( | AR_IEEE_128 * | to, | |
| const AR_CRAY_128 * | from | |||
| ) |
Definition at line 794 of file convert.c.
References AR_CRAY128_COEFF_BITS, AR_CRAY_EXPO_BIAS, AR_CRAY_MAX_EXPO, ar_i128norm(), AR_IEEE128_C0_BITS, AR_IEEE128_COEFF_BITS, AR_IEEE128_EXPO_BIAS, AR_IEEE128_MAX_EXPO, AR_ROUND_NEAREST, AR_STAT_NEGATIVE, AR_STAT_OK, AR_STAT_OVERFLOW, AR_CRAY_128::coeff0, AR_IEEE_128::coeff0, AR_CRAY_128::coeff1, AR_IEEE_128::coeff1, AR_CRAY_128::coeff2, AR_IEEE_128::coeff2, AR_CRAY_128::coeff3, AR_IEEE_128::coeff3, AR_CRAY_128::coeff4, AR_IEEE_128::coeff4, AR_CRAY_128::coeff5, AR_IEEE_128::coeff5, AR_IEEE_128::coeff6, AR_IEEE_128::expo, AR_CRAY_128::expo, HOST_IS_MIPS, QNaNIEEE128, AR_CRAY_128::sign, AR_IEEE_128::sign, and ZEROIEEE128.
Referenced by ar_convert_to_float().

| int ar_ctoi64 | ( | AR_IEEE_64 * | to, | |
| const AR_CRAY_64 * | from | |||
| ) |
Definition at line 752 of file convert.c.
References AR_CRAY64_COEFF_BITS, AR_CRAY_EXPO_BIAS, AR_CRAY_MAX_EXPO, ar_i64norm(), AR_IEEE64_C0_BITS, AR_IEEE64_COEFF_BITS, AR_IEEE64_EXPO_BIAS, AR_IEEE64_MAX_EXPO, AR_ROUND_NEAREST, AR_STAT_NEGATIVE, AR_STAT_OK, AR_STAT_OVERFLOW, AR_IEEE_64::coeff0, CRAY64TOINT64, AR_IEEE_64::expo, AR_CRAY_64::expo, HOST_IS_MIPS, INT64TOIEEE64, QNaNIEEE64, AR_CRAY_64::sign, AR_IEEE_64::sign, and ZEROIEEE64.
Referenced by AR_convert_float_to_str(), ar_convert_to_float(), and main().

| int ar_i128to64 | ( | AR_IEEE_64 * | d, | |
| const AR_IEEE_128 * | q, | |||
| const int | roundmode | |||
| ) |
Definition at line 1094 of file convert.c.
References ar_state_info::ar_denorms_trap, AR_Float_IEEE_NR_64, ar_i64norm(), AR_IEEE128_EXPO_BIAS, AR_IEEE128_MAX_EXPO, AR_IEEE64_C0_BITS, AR_IEEE64_EXPO_BIAS, AR_IEEE64_MAX_EXPO, AR_STAT_NEGATIVE, AR_STAT_OK, AR_STAT_OVERFLOW, AR_STAT_UNDEFINED, AR_STAT_UNDERFLOW, AR_STAT_ZERO, ar_state_register, AR_status(), AR_IEEE_64::coeff0, AR_IEEE_128::coeff0, AR_IEEE_64::coeff1, AR_IEEE_128::coeff1, AR_IEEE_64::coeff2, AR_IEEE_128::coeff2, AR_IEEE_128::coeff3, AR_IEEE_64::coeff3, AR_IEEE_128::coeff4, AR_IEEE_128::coeff5, AR_IEEE_128::coeff6, COEFF_BIT_OFF, AR_IEEE_64::expo, AR_IEEE_128::expo, HOST_IS_MIPS, IS_IEEE128_NZ_COEFF, IS_IEEE64_NZ_COEFF, MASKR, AR_IEEE_128::sign, AR_IEEE_64::sign, and ZEROIEEE64.
Referenced by AR_convert_float_to_str(), and ar_convert_to_float().

| int ar_i32to64 | ( | AR_IEEE_64 * | d, | |
| const AR_IEEE_32 * | s | |||
| ) |
Definition at line 1024 of file convert.c.
References ar_i64norm(), AR_IEEE32_EXPO_BIAS, AR_IEEE32_MAX_EXPO, AR_IEEE64_C1_BITS, AR_IEEE64_C2_BITS, AR_IEEE64_EXPO_BIAS, AR_IEEE64_MAX_EXPO, AR_ROUND_NEAREST, AR_STAT_NEGATIVE, AR_STAT_OVERFLOW, AR_STAT_UNDEFINED, AR_IEEE_32::coeff0, AR_IEEE_64::coeff0, AR_IEEE_32::coeff1, AR_IEEE_64::coeff1, AR_IEEE_64::coeff2, AR_IEEE_64::coeff3, COEFF_BIT_OFF, AR_IEEE_64::expo, AR_IEEE_32::expo, IS_IEEE32_NZ_COEFF, IS_IEEE64_NZ_COEFF, AR_IEEE_32::sign, AR_IEEE_64::sign, and ZEROIEEE64.
Referenced by AR_convert_float_to_str(), and ar_convert_to_float().

| int ar_i64to128 | ( | AR_IEEE_128 * | q, | |
| const AR_IEEE_64 * | d | |||
| ) |
Definition at line 1199 of file convert.c.
References AR_Float_IEEE_NR_128, ar_i128norm(), AR_IEEE128_EXPO_BIAS, AR_IEEE128_MAX_EXPO, AR_IEEE64_C0_BITS, AR_IEEE64_EXPO_BIAS, AR_IEEE64_MAX_EXPO, AR_ROUND_NEAREST, AR_STAT_NEGATIVE, AR_STAT_OVERFLOW, AR_STAT_UNDEFINED, AR_status(), AR_IEEE_64::coeff0, AR_IEEE_128::coeff0, AR_IEEE_128::coeff1, AR_IEEE_64::coeff1, AR_IEEE_128::coeff2, AR_IEEE_64::coeff2, AR_IEEE_128::coeff3, AR_IEEE_64::coeff3, AR_IEEE_128::coeff4, AR_IEEE_128::coeff5, AR_IEEE_128::coeff6, COEFF_BIT_OFF, AR_IEEE_128::expo, AR_IEEE_64::expo, HOST_IS_MIPS, IS_IEEE128_NZ_COEFF, IS_IEEE64_NZ_COEFF, AR_IEEE_64::sign, AR_IEEE_128::sign, and ZEROIEEE128.
Referenced by ar_convert_to_float().

| int ar_i64to32 | ( | AR_IEEE_32 * | s, | |
| const AR_IEEE_64 * | d, | |||
| const int | roundmode | |||
| ) |
Definition at line 935 of file convert.c.
References ar_state_info::ar_denorms_trap, ar_i32norm(), AR_IEEE32_EXPO_BIAS, AR_IEEE32_MAX_EXPO, AR_IEEE64_C1_BITS, AR_IEEE64_C2_BITS, AR_IEEE64_EXPO_BIAS, AR_IEEE64_MAX_EXPO, AR_STAT_NEGATIVE, AR_STAT_OK, AR_STAT_OVERFLOW, AR_STAT_UNDEFINED, AR_STAT_UNDERFLOW, AR_STAT_ZERO, ar_state_register, AR_IEEE_64::coeff0, AR_IEEE_32::coeff0, AR_IEEE_64::coeff1, AR_IEEE_32::coeff1, AR_IEEE_64::coeff2, AR_IEEE_64::coeff3, COEFF_BIT_OFF, AR_IEEE_32::expo, AR_IEEE_64::expo, IS_IEEE32_NZ_COEFF, IS_IEEE64_NZ_COEFF, MASKR, AR_IEEE_64::sign, AR_IEEE_32::sign, AR_IEEE_32::zero, and ZEROIEEE32.
Referenced by ar_convert_to_float().

| int ar_i64toc128 | ( | AR_CRAY_128 * | to, | |
| const AR_IEEE_64 * | from | |||
| ) |
Definition at line 699 of file convert.c.
References ar_cfadd128(), AR_CRAY64_COEFF_BITS, AR_CRAY_C0_BITS, AR_CRAY_EXPO_BIAS, AR_CRAY_MAX_EXPO, AR_IEEE64_COEFF_BITS, AR_IEEE64_EXPO_BIAS, AR_IEEE64_MAX_EXPO, ar_ifix64(), ar_ifmul64(), AR_ROUND_NEAREST, AR_STAT_OVERFLOW, AR_STAT_ZERO, AR_CRAY_128::coeff0, AR_CRAY_128::coeff1, AR_CRAY_128::coeff2, CRAY64TO128, AR_CRAY_128::expo, AR_IEEE_64::expo, INT64TOCRAY64, SHRIGHTCRAY128, AR_CRAY_128::sign, AR_IEEE_64::sign, zero, ZEROCRAY128, and ZEROIEEE64.
Referenced by AR_convert_float_to_str(), ar_convert_to_float(), and main().

| int ar_ifix128 | ( | AR_INT_64 * | fix, | |
| const AR_IEEE_128 * | flt, | |||
| int | bitsize, | |||
| int | roundmode | |||
| ) |
Definition at line 391 of file convert.c.
References AR_IEEE128_COEFF_BITS, AR_IEEE128_EXPO_BIAS, AR_IEEE128_ROUND_BITS, AR_Int_64_S, AR_ROUND_MINUS_INFINITY, AR_ROUND_PLUS_INFINITY, AR_ROUND_ZERO, AR_STAT_INEXACT, AR_STAT_NEGATIVE, AR_STAT_OK, AR_STAT_OVERFLOW, AR_STAT_SEMIVALID, AR_STAT_ZERO, AR_status(), AR_IEEE_128::coeff0, AR_IEEE_128::coeff1, AR_IEEE_128::coeff2, AR_IEEE_128::coeff3, DEC64, AR_IEEE_128::expo, HOST_IS_MIPS, INC64, IS_IEEE128_NZ_COEFF, MASKR, NOT64, AR_INT_64::part1, AR_INT_64::part2, AR_INT_64::part3, AR_INT_64::part4, SHRIGHT64, AR_IEEE_128::sign, and ZERO64.
Referenced by ar_convert_to_integral().

| int ar_ifix32 | ( | AR_INT_64 * | fix, | |
| const AR_IEEE_32 * | flt, | |||
| int | bitsize, | |||
| int | roundmode | |||
| ) |
Definition at line 245 of file convert.c.
References AR_IEEE32_COEFF_BITS, AR_IEEE32_EXPO_BIAS, AR_IEEE32_ROUND_BITS, AR_ROUND_MINUS_INFINITY, AR_ROUND_PLUS_INFINITY, AR_ROUND_ZERO, AR_STAT_INEXACT, AR_STAT_NEGATIVE, AR_STAT_OK, AR_STAT_OVERFLOW, AR_STAT_SEMIVALID, AR_STAT_ZERO, DEC64, AR_IEEE_32::expo, IEEE32TOINT64, INC64, IS_IEEE32_NZ_COEFF, MASKR, NOT64, AR_INT_64::part1, AR_INT_64::part2, AR_INT_64::part3, AR_INT_64::part4, SHLEFT64, SHRIGHT64, AR_IEEE_32::sign, and ZERO64.
Referenced by ar_convert_to_integral().
| int ar_ifix64 | ( | AR_INT_64 * | fix, | |
| const AR_IEEE_64 * | flt, | |||
| int | bitsize, | |||
| int | roundmode | |||
| ) |
Definition at line 318 of file convert.c.
References AR_IEEE64_COEFF_BITS, AR_IEEE64_EXPO_BIAS, AR_IEEE64_ROUND_BITS, AR_ROUND_MINUS_INFINITY, AR_ROUND_PLUS_INFINITY, AR_ROUND_ZERO, AR_STAT_INEXACT, AR_STAT_NEGATIVE, AR_STAT_OK, AR_STAT_OVERFLOW, AR_STAT_SEMIVALID, AR_STAT_ZERO, DEC64, AR_IEEE_64::expo, IEEE64TOINT64, INC64, IS_IEEE64_NZ_COEFF, MASKR, NOT64, AR_INT_64::part1, AR_INT_64::part2, AR_INT_64::part3, AR_INT_64::part4, SHLEFT64, SHRIGHT64, AR_IEEE_64::sign, and ZERO64.
Referenced by ar_convert_to_integral(), ar_i64toc128(), ar_itoc64(), ar_sim(), and main().
| int ar_iflt128 | ( | AR_IEEE_128 * | flt, | |
| const AR_INT_64 * | fix, | |||
| int | is_unsigned, | |||
| int | roundmode | |||
| ) |
Definition at line 542 of file convert.c.
References AR_Float_IEEE_NR_128, ar_i128norm(), AR_IEEE128_COEFF_BITS, AR_IEEE128_EXPO_BIAS, AR_IEEE128_EXPO_BITS, AR_status(), AR_IEEE_128::coeff3, AR_IEEE_128::coeff4, AR_IEEE_128::coeff5, AR_IEEE_128::coeff6, COPY64, HOST_IS_MIPS, INT64TOIEEE128, NEG64, AR_INT_64::part1, AR_IEEE_128::sign, SIGNBIT, and val.
Referenced by ar_convert_to_float().

| int ar_iflt32 | ( | AR_IEEE_32 * | flt, | |
| const AR_INT_64 * | fix, | |||
| int | is_unsigned, | |||
| int | roundmode | |||
| ) |
Definition at line 476 of file convert.c.
References ar_i32norm(), AR_IEEE32_COEFF_BITS, AR_IEEE32_EXPO_BIAS, AR_IEEE32_EXPO_BITS, AR_IEEE32_ROUND_BITS, COPY64, INT64TOIEEE32, NEG64, AR_INT_64::part1, AR_INT_64::part2, AR_INT_64::part3, AR_INT_64::part4, SHRIGHT64, AR_IEEE_32::sign, SIGNBIT, and val.
Referenced by ar_convert_to_float().

| 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().

| int ar_itoc128 | ( | AR_CRAY_128 * | to, | |
| const AR_IEEE_128 * | from, | |||
| int | roundmode | |||
| ) |
Definition at line 640 of file convert.c.
References ar_cfadd128(), AR_CRAY_C0_BITS, AR_CRAY_EXPO_BIAS, AR_CRAY_MAX_EXPO, AR_IEEE128_COEFF_BITS, AR_IEEE128_EXPO_BIAS, AR_IEEE128_MAX_EXPO, ar_ifmul128(), AR_STAT_OVERFLOW, AR_STAT_ZERO, AR_IEEE_128::coeff0, AR_CRAY_128::coeff0, AR_IEEE_128::coeff1, AR_CRAY_128::coeff1, AR_IEEE_128::coeff2, AR_CRAY_128::coeff2, AR_IEEE_128::coeff3, AR_CRAY_128::coeff3, AR_IEEE_128::coeff4, AR_CRAY_128::coeff4, AR_IEEE_128::coeff5, AR_CRAY_128::coeff5, AR_CRAY_128::expo, AR_IEEE_128::expo, SHRIGHTCRAY128, AR_CRAY_128::sign, AR_IEEE_128::sign, AR_CRAY_128::zero, zero, ZEROCRAY128, and ZEROIEEE128.
Referenced by AR_convert_float_to_str().

| int ar_itoc64 | ( | AR_CRAY_64 * | to, | |
| const AR_IEEE_64 * | from, | |||
| int | roundmode | |||
| ) |
Definition at line 587 of file convert.c.
References ar_cfadd64(), AR_CRAY64_COEFF_BITS, AR_CRAY_C0_BITS, AR_CRAY_EXPO_BIAS, AR_CRAY_MAX_EXPO, AR_IEEE64_COEFF_BITS, AR_IEEE64_EXPO_BIAS, AR_IEEE64_MAX_EXPO, ar_ifix64(), ar_ifmul64(), AR_STAT_OVERFLOW, AR_STAT_ZERO, AR_CRAY_64::coeff0, AR_CRAY_64::coeff1, AR_CRAY_64::coeff2, AR_CRAY_64::expo, AR_IEEE_64::expo, INT64TOCRAY64, SHRIGHTCRAY64, AR_CRAY_64::sign, AR_IEEE_64::sign, zero, ZEROCRAY64, and ZEROIEEE64.
Referenced by ar_convert_to_float(), and main().

1.6.1