summaryrefslogtreecommitdiff
path: root/src/pool.c
diff options
context:
space:
mode:
authorvlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2020-10-07 23:29:21 +0000
committervlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2020-10-07 23:29:21 +0000
commit027b0247144d5d847b73842ef3bb74a2e9641212 (patch)
tree66586c89da26dc8f0aeb3abb9723d8d450df1684 /src/pool.c
parent48399d6224df0e59b7848dea05727c19cc86d7d1 (diff)
downloadmpfr-027b0247144d5d847b73842ef3bb74a2e9641212.tar.gz
[src] Consistency: in prototypes, changed
mpz_t to mpz_ptr (mpfr-impl.h, pool.c); mpfr_random_deviate_t to mpfr_random_deviate_ptr (random_deviate.c). Note: This completes the changes I had done in r14103 (2020-08-21) for mpfr_t. This time, the issue was detected by a GCC 11 snapshot, thanks to the -Warray-parameter option (included in -Wall), which was added on 2020-09-19 in GCC commit 6450f07388f9fe575a489c9309c36012b17b88b0. git-svn-id: https://scm.gforge.inria.fr/anonscm/svn/mpfr/trunk@14154 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'src/pool.c')
-rw-r--r--src/pool.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/pool.c b/src/pool.c
index 775d7875c..9653d004e 100644
--- a/src/pool.c
+++ b/src/pool.c
@@ -35,7 +35,7 @@ static MPFR_THREAD_ATTR int n_alloc = 0;
static MPFR_THREAD_ATTR __mpz_struct mpz_tab[MPFR_POOL_NENTRIES];
MPFR_HOT_FUNCTION_ATTR void
-mpfr_mpz_init (mpz_t z)
+mpfr_mpz_init (mpz_ptr z)
{
if (MPFR_LIKELY (n_alloc > 0))
{
@@ -54,7 +54,7 @@ mpfr_mpz_init (mpz_t z)
}
MPFR_HOT_FUNCTION_ATTR void
-mpfr_mpz_init2 (mpz_t z, mp_bitcnt_t n)
+mpfr_mpz_init2 (mpz_ptr z, mp_bitcnt_t n)
{
/* The condition on n is used below as the argument n will be ignored if
the mpz_t is obtained from the MPFR stack of previously used mpz_t.
@@ -82,7 +82,7 @@ mpfr_mpz_init2 (mpz_t z, mp_bitcnt_t n)
MPFR_HOT_FUNCTION_ATTR void
-mpfr_mpz_clear (mpz_t z)
+mpfr_mpz_clear (mpz_ptr z)
{
/* We only put objects with at most MPFR_POOL_MAX_SIZE in the mpz_t pool,
to avoid it takes too much memory (and anyway the speedup is mainly