diff options
author | Marcus Shawcroft <marcus.shawcroft@linaro.org> | 2012-11-13 17:01:05 +0000 |
---|---|---|
committer | Marcus Shawcroft <marcus.shawcroft@linaro.org> | 2012-11-13 17:01:05 +0000 |
commit | 47594329a9c03fb945f41c19f06401271f9aa9c5 (patch) | |
tree | 446ca8eacfca3054d9243cdff7914fa9c134ac68 /soft-fp/soft-fp.h | |
parent | 640ac3f1bf2e575b514645fc03cceeeacf7bd845 (diff) | |
download | glibc-47594329a9c03fb945f41c19f06401271f9aa9c5.zip glibc-47594329a9c03fb945f41c19f06401271f9aa9c5.tar.gz glibc-47594329a9c03fb945f41c19f06401271f9aa9c5.tar.bz2 |
Fix missing truncation UNDERFLOW.
Diffstat (limited to 'soft-fp/soft-fp.h')
-rw-r--r-- | soft-fp/soft-fp.h | 34 |
1 files changed, 18 insertions, 16 deletions
diff --git a/soft-fp/soft-fp.h b/soft-fp/soft-fp.h index 750c7fe..49a8770 100644 --- a/soft-fp/soft-fp.h +++ b/soft-fp/soft-fp.h @@ -158,22 +158,24 @@ do { \ #define _FP_ROUND(wc, X) \ do { \ if (_FP_FRAC_LOW_##wc(X) & 7) \ - FP_SET_EXCEPTION(FP_EX_INEXACT); \ - switch (FP_ROUNDMODE) \ - { \ - case FP_RND_NEAREST: \ - _FP_ROUND_NEAREST(wc,X); \ - break; \ - case FP_RND_ZERO: \ - _FP_ROUND_ZERO(wc,X); \ - break; \ - case FP_RND_PINF: \ - _FP_ROUND_PINF(wc,X); \ - break; \ - case FP_RND_MINF: \ - _FP_ROUND_MINF(wc,X); \ - break; \ - } \ + { \ + FP_SET_EXCEPTION(FP_EX_INEXACT); \ + switch (FP_ROUNDMODE) \ + { \ + case FP_RND_NEAREST: \ + _FP_ROUND_NEAREST(wc,X); \ + break; \ + case FP_RND_ZERO: \ + _FP_ROUND_ZERO(wc,X); \ + break; \ + case FP_RND_PINF: \ + _FP_ROUND_PINF(wc,X); \ + break; \ + case FP_RND_MINF: \ + _FP_ROUND_MINF(wc,X); \ + break; \ + } \ + } \ } while (0) #define FP_CLS_NORMAL 0 |