Re: Remove traces of long in dynahash.c - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: Remove traces of long in dynahash.c
Date
Msg-id adffbc97-cdd8-463e-96be-81d4f04b96a3@eisentraut.org
Whole thread Raw
In response to Re: Remove traces of long in dynahash.c  (Michael Paquier <michael@paquier.xyz>)
List pgsql-hackers
On 22.08.25 07:09, Michael Paquier wrote:
> An extra thing is a suggested change for pg_nextpower2_32(), to use a
> uint64 instead of a uint32 as argument, which is caused by
> next_pow2_int64() and next_pow2_int(), that both used int64
> previously.

That seems highly confusing.  What is the meaning of the "32" then?

If you need 64-bit behavior, use the variant with "64" in the name.




pgsql-hackers by date:

Previous
From: Dmitry
Date:
Subject: Re: Inconsistent update in the MERGE command
Next
From: Mihail Nikalayeu
Date:
Subject: Re: Adding REPACK [concurrently]