Searched refs:src_exponent (Results 1 – 9 of 9) sorted by relevance
/openbmc/linux/arch/parisc/math-emu/ |
H A D | fcnvfx.c | 52 register int src_exponent, result; in sgl_to_sgl_fcnvfx() local 56 src_exponent = Sgl_exponent(src) - SGL_BIAS; in sgl_to_sgl_fcnvfx() 61 if (src_exponent > SGL_FX_MAX_EXP) { in sgl_to_sgl_fcnvfx() 63 if ((src_exponent > SGL_FX_MAX_EXP + 1) || in sgl_to_sgl_fcnvfx() 79 if (src_exponent >= 0) { in sgl_to_sgl_fcnvfx() 82 Int_from_sgl_mantissa(temp,src_exponent); in sgl_to_sgl_fcnvfx() 87 if (Sgl_isinexact_to_fix(src,src_exponent)) { in sgl_to_sgl_fcnvfx() 98 if (Sgl_isone_roundbit(src,src_exponent)) { in sgl_to_sgl_fcnvfx() 99 if (Sgl_isone_stickybit(src,src_exponent) in sgl_to_sgl_fcnvfx() 122 if (src_exponent == -1) in sgl_to_sgl_fcnvfx() [all …]
|
H A D | fcnvfxt.c | 53 register int src_exponent, result; in sgl_to_sgl_fcnvfxt() local 56 src_exponent = Sgl_exponent(src) - SGL_BIAS; in sgl_to_sgl_fcnvfxt() 61 if (src_exponent > SGL_FX_MAX_EXP) { in sgl_to_sgl_fcnvfxt() 63 if ((src_exponent > SGL_FX_MAX_EXP + 1) || in sgl_to_sgl_fcnvfxt() 79 if (src_exponent >= 0) { in sgl_to_sgl_fcnvfxt() 82 Int_from_sgl_mantissa(temp,src_exponent); in sgl_to_sgl_fcnvfxt() 88 if (Sgl_isinexact_to_fix(src,src_exponent)) { in sgl_to_sgl_fcnvfxt() 116 register int src_exponent, resultp1; in sgl_to_dbl_fcnvfxt() local 120 src_exponent = Sgl_exponent(src) - SGL_BIAS; in sgl_to_dbl_fcnvfxt() 125 if (src_exponent > DBL_FX_MAX_EXP) { in sgl_to_dbl_fcnvfxt() [all …]
|
H A D | fcnvfu.c | 53 register int src_exponent; in sgl_to_sgl_fcnvfu() local 57 src_exponent = Sgl_exponent(src) - SGL_BIAS; in sgl_to_sgl_fcnvfu() 62 if (src_exponent > SGL_FX_MAX_EXP + 1) { in sgl_to_sgl_fcnvfu() 78 if (src_exponent >= 0) { in sgl_to_sgl_fcnvfu() 93 Suint_from_sgl_mantissa(src,src_exponent,result); in sgl_to_sgl_fcnvfu() 96 if (Sgl_isinexact_to_unsigned(src,src_exponent)) { in sgl_to_sgl_fcnvfu() 106 if (Sgl_isone_roundbit(src,src_exponent) && in sgl_to_sgl_fcnvfu() 107 (Sgl_isone_stickybit(src,src_exponent) || in sgl_to_sgl_fcnvfu() 138 if (src_exponent == -1 && in sgl_to_sgl_fcnvfu() 173 register int src_exponent; in sgl_to_dbl_fcnvfu() local [all …]
|
H A D | frnd.c | 41 register int src_exponent; in sgl_frnd() local 48 if ((src_exponent = Sgl_exponent(src)) == SGL_INFINITY_EXPONENT) { in sgl_frnd() 68 if ((src_exponent -= SGL_BIAS) >= SGL_P - 1) { in sgl_frnd() 75 if (src_exponent >= 0) { in sgl_frnd() 78 Sgl_rightshift(result,(SGL_P-1) - (src_exponent)); in sgl_frnd() 80 if (Sgl_isinexact_to_fix(src,src_exponent)) { in sgl_frnd() 91 if (Sgl_isone_roundbit(src,src_exponent)) in sgl_frnd() 92 if (Sgl_isone_stickybit(src,src_exponent) in sgl_frnd() 97 Sgl_leftshift(result,(SGL_P-1) - (src_exponent)); in sgl_frnd() 99 Sgl_set_exponent(result,src_exponent + (SGL_BIAS+1)); in sgl_frnd() [all …]
|
H A D | fcnvfut.c | 51 register int src_exponent; in sgl_to_sgl_fcnvfut() local 54 src_exponent = Sgl_exponent(src) - SGL_BIAS; in sgl_to_sgl_fcnvfut() 59 if (src_exponent > SGL_FX_MAX_EXP + 1) { in sgl_to_sgl_fcnvfut() 75 if (src_exponent >= 0) { in sgl_to_sgl_fcnvfut() 90 Suint_from_sgl_mantissa(src,src_exponent,result); in sgl_to_sgl_fcnvfut() 94 if (Sgl_isinexact_to_unsigned(src,src_exponent)) { in sgl_to_sgl_fcnvfut() 119 register int src_exponent; in sgl_to_dbl_fcnvfut() local 123 src_exponent = Sgl_exponent(src) - SGL_BIAS; in sgl_to_dbl_fcnvfut() 128 if (src_exponent > DBL_FX_MAX_EXP + 1) { in sgl_to_dbl_fcnvfut() 144 if (src_exponent >= 0) { in sgl_to_dbl_fcnvfut() [all …]
|
H A D | sfsqrt.c | 45 register int src_exponent; in sgl_fsqrt() local 53 if ((src_exponent = Sgl_exponent(src)) == SGL_INFINITY_EXPONENT) { in sgl_fsqrt() 98 if (src_exponent > 0) { in sgl_fsqrt() 105 src_exponent++; in sgl_fsqrt() 106 Sgl_normalize(src,src_exponent); in sgl_fsqrt() 107 even_exponent = src_exponent & 1; in sgl_fsqrt() 158 if (Sgl_isone_hiddenoverflow(result)) src_exponent+=2; in sgl_fsqrt() 162 ((src_exponent-SGL_BIAS)>>1)+SGL_BIAS); in sgl_fsqrt() 171 Sgl_set_exponent(result,((src_exponent-SGL_BIAS)>>1)+SGL_BIAS); in sgl_fsqrt()
|
H A D | fcnvff.c | 48 register int src_exponent; in sgl_to_dbl_fcnvff() local 51 src_exponent = Sgl_exponent(src); in sgl_to_dbl_fcnvff() 56 if (src_exponent == SGL_INFINITY_EXPONENT) { in sgl_to_dbl_fcnvff() 94 if (src_exponent == 0) { in sgl_to_dbl_fcnvff() 104 Sgl_normalize(src,src_exponent); in sgl_to_dbl_fcnvff() 105 Sgl_to_dbl_exponent(src_exponent,resultp1); in sgl_to_dbl_fcnvff() 117 Sgl_to_dbl_exponent(src_exponent, resultp1); in sgl_to_dbl_fcnvff() 135 register int src_exponent, dest_exponent, dest_mantissa; in dbl_to_sgl_fcnvff() local 141 src_exponent = Dbl_exponent(srcp1); in dbl_to_sgl_fcnvff() 146 if (src_exponent == DBL_INFINITY_EXPONENT) { in dbl_to_sgl_fcnvff() [all …]
|
H A D | dfsqrt.c | 46 register int src_exponent; in dbl_fsqrt() local 53 if ((src_exponent = Dbl_exponent(srcp1)) == DBL_INFINITY_EXPONENT) { in dbl_fsqrt() 99 if (src_exponent > 0) { in dbl_fsqrt() 106 src_exponent++; in dbl_fsqrt() 107 Dbl_normalize(srcp1,srcp2,src_exponent); in dbl_fsqrt() 108 even_exponent = src_exponent & 1; in dbl_fsqrt() 166 if (Dbl_isone_hiddenoverflow(resultp1)) src_exponent+=2; in dbl_fsqrt() 170 ((src_exponent-DBL_BIAS)>>1)+DBL_BIAS); in dbl_fsqrt() 179 Dbl_set_exponent(resultp1,((src_exponent-DBL_BIAS)>>1)+DBL_BIAS); in dbl_fsqrt()
|
H A D | cnv_float.h | 39 #define Sgl_to_dbl_exponent(src_exponent,dest) \ argument 40 Deposit_dexponent(dest,src_exponent+(DBL_BIAS-SGL_BIAS)) 85 #define Dbl_to_sgl_exponent(src_exponent,dest) \ argument 86 dest = src_exponent + (SGL_BIAS - DBL_BIAS)
|