[Gmp-commit] /var/hg/gmp: Make use of CNST_LIMB.
mercurial at gmplib.org
mercurial at gmplib.org
Wed May 2 14:33:44 CEST 2012
details: /var/hg/gmp/rev/97d68bbee018
changeset: 14936:97d68bbee018
user: Torbjorn Granlund <tege at gmplib.org>
date: Wed May 02 14:33:42 2012 +0200
description:
Make use of CNST_LIMB.
diffstat:
ChangeLog | 4 ++++
mpz/bin_uiui.c | 2 +-
2 files changed, 5 insertions(+), 1 deletions(-)
diffs (23 lines):
diff -r a6ee205d1547 -r 97d68bbee018 ChangeLog
--- a/ChangeLog Wed May 02 14:30:57 2012 +0200
+++ b/ChangeLog Wed May 02 14:33:42 2012 +0200
@@ -1,3 +1,7 @@
+2012-05-02 Torbjorn Granlund <tege at gmplib.org>
+
+ * mpz/bin_uiui.c: Make use of CNST_LIMB.
+
2012-05-02 Marco Bodrato <bodrato at mail.dm.unipi.it>
* mpz/mfac_uiui.c: Support limb != ui.
diff -r a6ee205d1547 -r 97d68bbee018 mpz/bin_uiui.c
--- a/mpz/bin_uiui.c Wed May 02 14:30:57 2012 +0200
+++ b/mpz/bin_uiui.c Wed May 02 14:33:42 2012 +0200
@@ -169,7 +169,7 @@
static const unsigned long ftab[] =
#if GMP_NUMB_BITS == 64
/* 1 to 8 factors per iteration */
- {0xfffffffffffffffful,0x100000000ul,0x32cbfe,0x16a0b,0x24c4,0xa16,0x34b,0x1b2 /*,0xdf,0x8d */};
+ {CNST_LIMB(0xffffffffffffffff),CNST_LIMB(0x100000000),0x32cbfe,0x16a0b,0x24c4,0xa16,0x34b,0x1b2 /*,0xdf,0x8d */};
#endif
#if GMP_NUMB_BITS == 32
/* 1 to 7 factors per iteration */
More information about the gmp-commit
mailing list