pgsql: Move check for USE_AVX512_POPCNT_WITH_RUNTIME_CHECK.

From: Nathan Bossart <nathan(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Move check for USE_AVX512_POPCNT_WITH_RUNTIME_CHECK.
Date: 2024-11-08 20:26:20
Message-ID: E1t9VYi-000s22-EH@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Move check for USE_AVX512_POPCNT_WITH_RUNTIME_CHECK.

Unlike TRY_POPCNT_FAST, which is defined in pg_bitutils.h, this
macro is defined in c.h (via pg_config.h), so we can check for it
earlier and avoid some unnecessary #includes on systems that lack
AVX-512 support.

Oversight in commit f78667bd91.

Discussion: https://postgr.es/m/Zy5K5Qmlb3Z4dsd4%40nathan

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/4225276e25403e70de623ca9afd2c061cba24ccc

Modified Files
--------------
src/port/pg_popcount_avx512.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Andrew Dunstan 2024-11-08 20:30:37 Re: pgsql: Fix our Windows stat() emulation to handle file sizes > 4GB.
Previous Message Tom Lane 2024-11-08 19:41:56 Re: pgsql: Fix our Windows stat() emulation to handle file sizes > 4GB.