Searched refs:src_exponent (Results 1 – 7 of 7) sorted by relevance
/netbsd-src/sys/arch/hppa/spmath/ |
H A D | fcnvfx.c | 60 register int src_exponent, result; in sgl_to_sgl_fcnvfx() local 64 src_exponent = Sgl_exponent(src) - SGL_BIAS; in sgl_to_sgl_fcnvfx() 69 if (src_exponent > SGL_FX_MAX_EXP) { in sgl_to_sgl_fcnvfx() 71 if ((src_exponent > SGL_FX_MAX_EXP + 1) || in sgl_to_sgl_fcnvfx() 87 if (src_exponent >= 0) { in sgl_to_sgl_fcnvfx() 90 Int_from_sgl_mantissa(temp,src_exponent); in sgl_to_sgl_fcnvfx() 95 if (Sgl_isinexact_to_fix(src,src_exponent)) { in sgl_to_sgl_fcnvfx() 106 if (Sgl_isone_roundbit(src,src_exponent)) { in sgl_to_sgl_fcnvfx() 107 if (Sgl_isone_stickybit(src,src_exponent) in sgl_to_sgl_fcnvfx() 131 if (src_exponent == -1) in sgl_to_sgl_fcnvfx() [all …]
|
H A D | fcnvfxt.c | 62 register int src_exponent, result; in sgl_to_sgl_fcnvfxt() local 65 src_exponent = Sgl_exponent(src) - SGL_BIAS; in sgl_to_sgl_fcnvfxt() 70 if (src_exponent > SGL_FX_MAX_EXP) { in sgl_to_sgl_fcnvfxt() 72 if ((src_exponent > SGL_FX_MAX_EXP + 1) || in sgl_to_sgl_fcnvfxt() 88 if (src_exponent >= 0) { in sgl_to_sgl_fcnvfxt() 91 Int_from_sgl_mantissa(temp,src_exponent); in sgl_to_sgl_fcnvfxt() 97 if (Sgl_isinexact_to_fix(src,src_exponent)) { in sgl_to_sgl_fcnvfxt() 122 register int src_exponent, resultp1; in sgl_to_dbl_fcnvfxt() local 126 src_exponent = Sgl_exponent(src) - SGL_BIAS; in sgl_to_dbl_fcnvfxt() 131 if (src_exponent > DBL_FX_MAX_EXP) { in sgl_to_dbl_fcnvfxt() [all …]
|
H A D | frnd.c | 63 register int src_exponent; in sgl_frnd() local 70 if ((src_exponent = Sgl_exponent(src)) == SGL_INFINITY_EXPONENT) { in sgl_frnd() 90 if ((src_exponent -= SGL_BIAS) >= SGL_P - 1) { in sgl_frnd() 97 if (src_exponent >= 0) { in sgl_frnd() 100 Sgl_rightshift(result,(SGL_P-1) - (src_exponent)); in sgl_frnd() 102 if (Sgl_isinexact_to_fix(src,src_exponent)) { in sgl_frnd() 113 if (Sgl_isone_roundbit(src,src_exponent)) in sgl_frnd() 114 if (Sgl_isone_stickybit(src,src_exponent) in sgl_frnd() 119 Sgl_leftshift(result,(SGL_P-1) - (src_exponent)); in sgl_frnd() 121 Sgl_set_exponent(result,src_exponent + (SGL_BIAS+1)); in sgl_frnd() [all …]
|
H A D | sfsqrt.c | 60 register int src_exponent, newbit, sum; in sgl_fsqrt() local 67 if ((src_exponent = Sgl_exponent(src)) == SGL_INFINITY_EXPONENT) { in sgl_fsqrt() 112 if (src_exponent > 0) { in sgl_fsqrt() 119 src_exponent++; in sgl_fsqrt() 120 Sgl_normalize(src,src_exponent); in sgl_fsqrt() 121 even_exponent = src_exponent & 1; in sgl_fsqrt() 172 if (Sgl_isone_hiddenoverflow(result)) src_exponent+=2; in sgl_fsqrt() 176 ((src_exponent-SGL_BIAS)>>1)+SGL_BIAS); in sgl_fsqrt() 185 Sgl_set_exponent(result,((src_exponent-SGL_BIAS)>>1)+SGL_BIAS); in sgl_fsqrt()
|
H A D | fcnvff.c | 61 register int src_exponent; in sgl_to_dbl_fcnvff() local 64 src_exponent = Sgl_exponent(src); in sgl_to_dbl_fcnvff() 69 if (src_exponent == SGL_INFINITY_EXPONENT) { in sgl_to_dbl_fcnvff() 107 if (src_exponent == 0) { in sgl_to_dbl_fcnvff() 117 Sgl_normalize(src,src_exponent); in sgl_to_dbl_fcnvff() 118 Sgl_to_dbl_exponent(src_exponent,resultp1); in sgl_to_dbl_fcnvff() 130 Sgl_to_dbl_exponent(src_exponent, resultp1); in sgl_to_dbl_fcnvff() 145 register int src_exponent, dest_exponent, dest_mantissa; in dbl_to_sgl_fcnvff() local 151 src_exponent = Dbl_exponent(srcp1); in dbl_to_sgl_fcnvff() 156 if (src_exponent == DBL_INFINITY_EXPONENT) { in dbl_to_sgl_fcnvff() [all …]
|
H A D | dfsqrt.c | 61 register int src_exponent; in dbl_fsqrt() local 68 if ((src_exponent = Dbl_exponent(srcp1)) == DBL_INFINITY_EXPONENT) { in dbl_fsqrt() 114 if (src_exponent > 0) { in dbl_fsqrt() 121 src_exponent++; in dbl_fsqrt() 122 Dbl_normalize(srcp1,srcp2,src_exponent); in dbl_fsqrt() 123 even_exponent = src_exponent & 1; in dbl_fsqrt() 181 if (Dbl_isone_hiddenoverflow(resultp1)) src_exponent+=2; in dbl_fsqrt() 185 ((src_exponent-DBL_BIAS)>>1)+DBL_BIAS); in dbl_fsqrt() 194 Dbl_set_exponent(resultp1,((src_exponent-DBL_BIAS)>>1)+DBL_BIAS); in dbl_fsqrt()
|
H A D | cnv_float.h | 67 #define Sgl_to_dbl_exponent(src_exponent,dest) \ argument 68 Deposit_dexponent(dest,src_exponent+(DBL_BIAS-SGL_BIAS)) 113 #define Dbl_to_sgl_exponent(src_exponent,dest) \ argument 114 dest = src_exponent + (SGL_BIAS - DBL_BIAS)
|