diff options
Diffstat (limited to 'soft-fp')
-rw-r--r-- | soft-fp/op-1.h | 2 | ||||
-rw-r--r-- | soft-fp/op-2.h | 8 | ||||
-rw-r--r-- | soft-fp/op-4.h | 2 | ||||
-rw-r--r-- | soft-fp/op-common.h | 28 |
4 files changed, 20 insertions, 20 deletions
diff --git a/soft-fp/op-1.h b/soft-fp/op-1.h index b9035ee..8e05e2f 100644 --- a/soft-fp/op-1.h +++ b/soft-fp/op-1.h @@ -233,7 +233,7 @@ do { \ _nl = X##_f << (_FP_W_TYPE_SIZE - 1); \ _nh = X##_f >> 1; \ } \ - \ + \ udiv_qrnnd(_q, _r, _nh, _nl, _y); \ R##_f = _q | (_r != 0); \ } while (0) diff --git a/soft-fp/op-2.h b/soft-fp/op-2.h index f25af19..48e01d2 100644 --- a/soft-fp/op-2.h +++ b/soft-fp/op-2.h @@ -433,10 +433,10 @@ R##_f1 = (_t240 << (128 - (wfracbits - 1))) \ | ((_u240 & 0xffffff) >> ((wfracbits - 1) - 104)); \ R##_f0 = ((_u240 & 0xffffff) << (168 - (wfracbits - 1))) \ - | ((_v240 & 0xffffff) << (144 - (wfracbits - 1))) \ - | ((_w240 & 0xffffff) << (120 - (wfracbits - 1))) \ - | ((_x240 & 0xffffff) >> ((wfracbits - 1) - 96)) \ - | _y240; \ + | ((_v240 & 0xffffff) << (144 - (wfracbits - 1))) \ + | ((_w240 & 0xffffff) << (120 - (wfracbits - 1))) \ + | ((_x240 & 0xffffff) >> ((wfracbits - 1) - 96)) \ + | _y240; \ resetfe; \ } while (0) diff --git a/soft-fp/op-4.h b/soft-fp/op-4.h index 9b5caa7..007b01f 100644 --- a/soft-fp/op-4.h +++ b/soft-fp/op-4.h @@ -481,7 +481,7 @@ S##_f[2] += (T##_f[1] > S##_f[1]); \ S##_f[3] += (T##_f[2] > S##_f[2]); \ __FP_FRAC_DEC_3(X##_f[3], X##_f[2], X##_f[1], \ - T##_f[3], T##_f[2], T##_f[1]); \ + T##_f[3], T##_f[2], T##_f[1]); \ R##_f[1] += q; \ } \ _FP_FRAC_SLL_4(X, 1); \ diff --git a/soft-fp/op-common.h b/soft-fp/op-common.h index 8b73b58..ce472e0 100644 --- a/soft-fp/op-common.h +++ b/soft-fp/op-common.h @@ -992,28 +992,28 @@ do { \ case FP_CLS_NAN: \ _FP_FRAC_COPY_##wc(R, X); \ R##_s = X##_s; \ - R##_c = FP_CLS_NAN; \ - break; \ + R##_c = FP_CLS_NAN; \ + break; \ case FP_CLS_INF: \ - if (X##_s) \ - { \ - R##_s = _FP_NANSIGN_##fs; \ + if (X##_s) \ + { \ + R##_s = _FP_NANSIGN_##fs; \ R##_c = FP_CLS_NAN; /* NAN */ \ _FP_FRAC_SET_##wc(R, _FP_NANFRAC_##fs); \ FP_SET_EXCEPTION(FP_EX_INVALID); \ - } \ - else \ - { \ - R##_s = 0; \ - R##_c = FP_CLS_INF; /* sqrt(+inf) = +inf */ \ - } \ - break; \ + } \ + else \ + { \ + R##_s = 0; \ + R##_c = FP_CLS_INF; /* sqrt(+inf) = +inf */ \ + } \ + break; \ case FP_CLS_ZERO: \ R##_s = X##_s; \ R##_c = FP_CLS_ZERO; /* sqrt(+-0) = +-0 */ \ break; \ case FP_CLS_NORMAL: \ - R##_s = 0; \ + R##_s = 0; \ if (X##_s) \ { \ R##_c = FP_CLS_NAN; /* NAN */ \ @@ -1022,7 +1022,7 @@ do { \ FP_SET_EXCEPTION(FP_EX_INVALID); \ break; \ } \ - R##_c = FP_CLS_NORMAL; \ + R##_c = FP_CLS_NORMAL; \ if (X##_e & 1) \ _FP_FRAC_SLL_##wc(X, 1); \ R##_e = X##_e >> 1; \ |