summaryrefslogtreecommitdiff
path: root/src/rec_sqrt.c
diff options
context:
space:
mode:
authorvlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2016-08-04 15:06:52 +0000
committervlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2016-08-04 15:06:52 +0000
commitec1bdbd0eefe67dc1dca7d0aef44760fceebdb82 (patch)
tree56af74a1df677ea3a2fa0ca03cb779a685ac9ea2 /src/rec_sqrt.c
parent0ec64b99000114e68fd65bcf92f939cc61853aaa (diff)
downloadmpfr-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.c12
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),