summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4>2018-08-30 10:56:29 +0000
committerzimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4>2018-08-30 10:56:29 +0000
commit897225abf723fce41c5962c899c67bda1a86f7a4 (patch)
treedc75cc64b09cff5364ec969fe1b866c45d245ec4
parent59a92e8c68511f5a09c8011cef08e6a292114467 (diff)
downloadmpfr-897225abf723fce41c5962c899c67bda1a86f7a4.tar.gz
[mpfr-gmp.h] added comment
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@13080 280ebfd0-de03-0410-8827-d642c229c3f4
-rw-r--r--src/mpfr-gmp.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mpfr-gmp.h b/src/mpfr-gmp.h
index 581beb62e..06a787d2b 100644
--- a/src/mpfr-gmp.h
+++ b/src/mpfr-gmp.h
@@ -413,7 +413,10 @@ __MPFR_DECLSPEC void mpfr_tmp_free (struct tmp_marker *);
} while (0)
#endif
-/* invert_pi1 macro adapted from GMP 5 */
+/* invert_pi1 macro adapted from GMP 5, this computes in (dinv).inv32
+ the value of floor((beta^3 - 1)/(d1*beta+d0)) - beta,
+ cf "Improved Division by Invariant Integers" by Niels Möller and
+ Torbjörn Granlund */
typedef struct {mp_limb_t inv32;} mpfr_pi1_t;
#ifndef invert_pi1
#define invert_pi1(dinv, d1, d0) \