Lines Matching +full:fraction +full:- +full:z
1 /* Software floating-point emulation.
2 Basic one-word fraction declaration and manipulation.
23 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
45 /* Right shift with sticky-lsb. */
50 ? X & 1 : (X << (_FP_W_TYPE_SIZE - (N))) != 0)))
53 #define _FP_FRAC_SUB_1(R,X,Y) (R##_f = X##_f - Y##_f)
54 #define _FP_FRAC_DEC_1(X,Y) (X##_f -= Y##_f)
55 #define _FP_FRAC_CLZ_1(z, X) __FP_CLZ(z, X##_f) argument
89 X##_f = _flo->bits.frac; \
90 X##_e = _flo->bits.exp; \
91 X##_s = _flo->bits.sign; \
114 _flo->bits.frac = X##_f; \
115 _flo->bits.exp = X##_e; \
116 _flo->bits.sign = X##_s; \
132 at either 2B or 2B-1. */ \
133 _FP_FRAC_SRS_1(R, wfracbits-1, 2*wfracbits); \
144 at either 2B or 2B-1. */ \
145 _FP_FRAC_SRS_2(_Z, wfracbits-1, 2*wfracbits); \
157 _xl = X##_f & (((_FP_W_TYPE)1 << (_FP_W_TYPE_SIZE/2)) - 1); \
159 _yl = Y##_f & (((_FP_W_TYPE)1 << (_FP_W_TYPE_SIZE/2)) - 1); \
175 _FP_FRAC_SRS_2(_z, wfracbits - 1, 2*wfracbits); \
193 ? R##_e--, _FP_WFRACBITS_##fs \
194 : _FP_WFRACBITS_##fs - 1); \
208 /* Normalize Y -- i.e. make the most significant bit set. */ \
214 R##_e--; \
220 _nl = X##_f << (_FP_W_TYPE_SIZE - 1); \
233 R##_e--; \
239 _nl = X##_f << (_FP_WFRACBITS_##fs - 1); \
261 X##_f -= T##_f; \
294 _FP_FRAC_SRS_1(D, (_FP_WFRACBITS_##sfs-_FP_WFRACBITS_##dfs), \
297 _FP_FRAC_SRL_1(D, (_FP_WFRACBITS_##sfs-_FP_WFRACBITS_##dfs)); \
300 D##_f <<= _FP_WFRACBITS_##dfs - _FP_WFRACBITS_##sfs; \