Home
last modified time | relevance | path

Searched refs:src_exponent (Results 1 – 9 of 9) sorted by relevance

/linux-3.4.99/arch/parisc/math-emu/ !
Dfcnvfxt.c66 register int src_exponent, result; in sgl_to_sgl_fcnvfxt() local
69 src_exponent = Sgl_exponent(src) - SGL_BIAS; in sgl_to_sgl_fcnvfxt()
74 if (src_exponent > SGL_FX_MAX_EXP) { in sgl_to_sgl_fcnvfxt()
76 if ((src_exponent > SGL_FX_MAX_EXP + 1) || in sgl_to_sgl_fcnvfxt()
92 if (src_exponent >= 0) { in sgl_to_sgl_fcnvfxt()
95 Int_from_sgl_mantissa(temp,src_exponent); in sgl_to_sgl_fcnvfxt()
101 if (Sgl_isinexact_to_fix(src,src_exponent)) { in sgl_to_sgl_fcnvfxt()
129 register int src_exponent, resultp1; in sgl_to_dbl_fcnvfxt() local
133 src_exponent = Sgl_exponent(src) - SGL_BIAS; in sgl_to_dbl_fcnvfxt()
138 if (src_exponent > DBL_FX_MAX_EXP) { in sgl_to_dbl_fcnvfxt()
[all …]
Dfcnvfx.c65 register int src_exponent, result; in sgl_to_sgl_fcnvfx() local
69 src_exponent = Sgl_exponent(src) - SGL_BIAS; in sgl_to_sgl_fcnvfx()
74 if (src_exponent > SGL_FX_MAX_EXP) { in sgl_to_sgl_fcnvfx()
76 if ((src_exponent > SGL_FX_MAX_EXP + 1) || in sgl_to_sgl_fcnvfx()
92 if (src_exponent >= 0) { in sgl_to_sgl_fcnvfx()
95 Int_from_sgl_mantissa(temp,src_exponent); in sgl_to_sgl_fcnvfx()
100 if (Sgl_isinexact_to_fix(src,src_exponent)) { in sgl_to_sgl_fcnvfx()
111 if (Sgl_isone_roundbit(src,src_exponent)) { in sgl_to_sgl_fcnvfx()
112 if (Sgl_isone_stickybit(src,src_exponent) in sgl_to_sgl_fcnvfx()
135 if (src_exponent == -1) in sgl_to_sgl_fcnvfx()
[all …]
Dfrnd.c54 register int src_exponent; in sgl_frnd() local
61 if ((src_exponent = Sgl_exponent(src)) == SGL_INFINITY_EXPONENT) { in sgl_frnd()
81 if ((src_exponent -= SGL_BIAS) >= SGL_P - 1) { in sgl_frnd()
88 if (src_exponent >= 0) { in sgl_frnd()
91 Sgl_rightshift(result,(SGL_P-1) - (src_exponent)); in sgl_frnd()
93 if (Sgl_isinexact_to_fix(src,src_exponent)) { in sgl_frnd()
104 if (Sgl_isone_roundbit(src,src_exponent)) in sgl_frnd()
105 if (Sgl_isone_stickybit(src,src_exponent) in sgl_frnd()
110 Sgl_leftshift(result,(SGL_P-1) - (src_exponent)); in sgl_frnd()
112 Sgl_set_exponent(result,src_exponent + (SGL_BIAS+1)); in sgl_frnd()
[all …]
Dfcnvfu.c66 register int src_exponent; in sgl_to_sgl_fcnvfu() local
70 src_exponent = Sgl_exponent(src) - SGL_BIAS; in sgl_to_sgl_fcnvfu()
75 if (src_exponent > SGL_FX_MAX_EXP + 1) { in sgl_to_sgl_fcnvfu()
91 if (src_exponent >= 0) { in sgl_to_sgl_fcnvfu()
106 Suint_from_sgl_mantissa(src,src_exponent,result); in sgl_to_sgl_fcnvfu()
109 if (Sgl_isinexact_to_unsigned(src,src_exponent)) { in sgl_to_sgl_fcnvfu()
119 if (Sgl_isone_roundbit(src,src_exponent) && in sgl_to_sgl_fcnvfu()
120 (Sgl_isone_stickybit(src,src_exponent) || in sgl_to_sgl_fcnvfu()
151 if (src_exponent == -1 && in sgl_to_sgl_fcnvfu()
186 register int src_exponent; in sgl_to_dbl_fcnvfu() local
[all …]
Dfcnvfut.c64 register int src_exponent; in sgl_to_sgl_fcnvfut() local
67 src_exponent = Sgl_exponent(src) - SGL_BIAS; in sgl_to_sgl_fcnvfut()
72 if (src_exponent > SGL_FX_MAX_EXP + 1) { in sgl_to_sgl_fcnvfut()
88 if (src_exponent >= 0) { in sgl_to_sgl_fcnvfut()
103 Suint_from_sgl_mantissa(src,src_exponent,result); in sgl_to_sgl_fcnvfut()
107 if (Sgl_isinexact_to_unsigned(src,src_exponent)) { in sgl_to_sgl_fcnvfut()
132 register int src_exponent; in sgl_to_dbl_fcnvfut() local
136 src_exponent = Sgl_exponent(src) - SGL_BIAS; in sgl_to_dbl_fcnvfut()
141 if (src_exponent > DBL_FX_MAX_EXP + 1) { in sgl_to_dbl_fcnvfut()
157 if (src_exponent >= 0) { in sgl_to_dbl_fcnvfut()
[all …]
Dsfsqrt.c58 register int src_exponent; in sgl_fsqrt() local
66 if ((src_exponent = Sgl_exponent(src)) == SGL_INFINITY_EXPONENT) { in sgl_fsqrt()
111 if (src_exponent > 0) { in sgl_fsqrt()
118 src_exponent++; in sgl_fsqrt()
119 Sgl_normalize(src,src_exponent); in sgl_fsqrt()
120 even_exponent = src_exponent & 1; in sgl_fsqrt()
171 if (Sgl_isone_hiddenoverflow(result)) src_exponent+=2; in sgl_fsqrt()
175 ((src_exponent-SGL_BIAS)>>1)+SGL_BIAS); in sgl_fsqrt()
184 Sgl_set_exponent(result,((src_exponent-SGL_BIAS)>>1)+SGL_BIAS); in sgl_fsqrt()
Dfcnvff.c61 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()
148 register int src_exponent, dest_exponent, dest_mantissa; in dbl_to_sgl_fcnvff() local
154 src_exponent = Dbl_exponent(srcp1); in dbl_to_sgl_fcnvff()
159 if (src_exponent == DBL_INFINITY_EXPONENT) { in dbl_to_sgl_fcnvff()
[all …]
Ddfsqrt.c59 register int src_exponent; in dbl_fsqrt() local
66 if ((src_exponent = Dbl_exponent(srcp1)) == DBL_INFINITY_EXPONENT) { in dbl_fsqrt()
112 if (src_exponent > 0) { in dbl_fsqrt()
119 src_exponent++; in dbl_fsqrt()
120 Dbl_normalize(srcp1,srcp2,src_exponent); in dbl_fsqrt()
121 even_exponent = src_exponent & 1; in dbl_fsqrt()
179 if (Dbl_isone_hiddenoverflow(resultp1)) src_exponent+=2; in dbl_fsqrt()
183 ((src_exponent-DBL_BIAS)>>1)+DBL_BIAS); in dbl_fsqrt()
192 Dbl_set_exponent(resultp1,((src_exponent-DBL_BIAS)>>1)+DBL_BIAS); in dbl_fsqrt()
Dcnv_float.h52 #define Sgl_to_dbl_exponent(src_exponent,dest) \ argument
53 Deposit_dexponent(dest,src_exponent+(DBL_BIAS-SGL_BIAS))
98 #define Dbl_to_sgl_exponent(src_exponent,dest) \ argument
99 dest = src_exponent + (SGL_BIAS - DBL_BIAS)