diff options
author | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2016-08-04 15:06:52 +0000 |
---|---|---|
committer | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2016-08-04 15:06:52 +0000 |
commit | ec1bdbd0eefe67dc1dca7d0aef44760fceebdb82 (patch) | |
tree | 56af74a1df677ea3a2fa0ca03cb779a685ac9ea2 /src/rec_sqrt.c | |
parent | 0ec64b99000114e68fd65bcf92f939cc61853aaa (diff) | |
download | mpfr-ec1bdbd0eefe67dc1dca7d0aef44760fceebdb82.tar.gz |
Fixed remaining macros with missing "do" … "while (0)", detected with
mpfrlint. There were no consequences except spurious null statements.
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@10727 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'src/rec_sqrt.c')
-rw-r--r-- | src/rec_sqrt.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/rec_sqrt.c b/src/rec_sqrt.c index 1797e3f77..fc87aa49f 100644 --- a/src/rec_sqrt.c +++ b/src/rec_sqrt.c @@ -26,11 +26,13 @@ http://www.gnu.org/licenses/ or write to the Free Software Foundation, Inc., #define LIMB_SIZE(x) ((((x)-1)>>MPFR_LOG2_GMP_NUMB_BITS) + 1) #define MPFR_COM_N(x,y,n) \ - { \ - mp_size_t i; \ - for (i = 0; i < n; i++) \ - *((x)+i) = ~*((y)+i); \ - } + do \ + { \ + mp_size_t i; \ + for (i = 0; i < n; i++) \ + *((x)+i) = ~*((y)+i); \ + } \ + while (0) /* Put in X a p-bit approximation of 1/sqrt(A), where X = {x, n}/B^n, n = ceil(p/GMP_NUMB_BITS), |