summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--gmp-impl.h4
-rw-r--r--mpn/generic/trialdiv.c4
3 files changed, 9 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index e3583cc98..64b83418c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2015-12-19 Marc Glisse <marc.glisse@inria.fr>
+
+ * gmp-impl.h (fft_table_nk): Use gmp_uint_least32_t.
+ * mpn/generic/trialdiv.c (gmp_primes_ptab): Likewise.
+
2015-12-14 Torbjörn Granlund <torbjorng@google.com>
* mpn/x86_64/fat/fat.c (gmp_workaround_skylake_cpuid_bug):
diff --git a/gmp-impl.h b/gmp-impl.h
index 10f002bd0..698758104 100644
--- a/gmp-impl.h
+++ b/gmp-impl.h
@@ -2295,8 +2295,8 @@ __GMP_DECLSPEC mp_limb_t gmp_primesieve (mp_ptr, mp_limb_t);
struct fft_table_nk
{
- unsigned int n:27;
- unsigned int k:5;
+ gmp_uint_least32_t n:27;
+ gmp_uint_least32_t k:5;
};
#ifndef FFT_TABLE_ATTRS
diff --git a/mpn/generic/trialdiv.c b/mpn/generic/trialdiv.c
index 09cecfd41..6e83c996f 100644
--- a/mpn/generic/trialdiv.c
+++ b/mpn/generic/trialdiv.c
@@ -65,8 +65,8 @@ struct gmp_primes_dtab {
struct gmp_primes_ptab {
mp_limb_t ppp; /* primes, multiplied together */
mp_limb_t cps[7]; /* ppp values pre-computed for mpn_mod_1s_4p */
- unsigned int idx:24; /* index of first primes in dtab */
- unsigned int np :8; /* number of primes related to this entry */
+ gmp_uint_least32_t idx:24; /* index of first primes in dtab */
+ gmp_uint_least32_t np :8; /* number of primes related to this entry */
};