summaryrefslogtreecommitdiff
path: root/src/mpfr-impl.h
diff options
context:
space:
mode:
authorvlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2017-05-04 07:46:57 +0000
committervlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2017-05-04 07:46:57 +0000
commit6de18e36a603b2b4c3f065119de5d5fd78367b51 (patch)
tree333e193c333ea5369d4fcd17e5fbb469dd50c40d /src/mpfr-impl.h
parentc64ffc2f9958b4fa2eab676fee377ef0fbcaddba (diff)
downloadmpfr-6de18e36a603b2b4c3f065119de5d5fd78367b51.tar.gz
Merged r11179-11196 from the trunk (no conflicts).
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/faithful@11453 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'src/mpfr-impl.h')
-rw-r--r--src/mpfr-impl.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mpfr-impl.h b/src/mpfr-impl.h
index 5eef0c61c..88765d8a5 100644
--- a/src/mpfr-impl.h
+++ b/src/mpfr-impl.h
@@ -1443,6 +1443,9 @@ do { \
/* Size of an array, as a constant expression. */
#define numberof_const(x) (sizeof (x) / sizeof ((x)[0]))
+/* Addition with carry (detected by GCC and other good compilers). */
+#define ADD_LIMB(u,v,c) ((u) += (v), (c) = (u) < (v))
+
/******************************************************
************ Save exponent/flags macros ************