diff options
author | Marc Glisse <marc.glisse@inria.fr> | 2015-12-19 11:59:42 +0100 |
---|---|---|
committer | Marc Glisse <marc.glisse@inria.fr> | 2015-12-19 11:59:42 +0100 |
commit | 9ef1350d2fe01d8adc29985d58f200e5a453ef82 (patch) | |
tree | 6194ddd8ec4361325d90e79dd27214af87e4f58c | |
parent | 4e3536313f27bee75d205b2b23cda2fba8170c33 (diff) | |
download | gmp-9ef1350d2fe01d8adc29985d58f200e5a453ef82.tar.gz |
Use gmp_uint_least32_t in bitfields instead of unsigned int.
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | gmp-impl.h | 4 | ||||
-rw-r--r-- | mpn/generic/trialdiv.c | 4 |
3 files changed, 9 insertions, 4 deletions
@@ -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 */ }; |