pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Nathan Bossart <nathan@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Move check for USE_AVX512_POPCNT_WITH_RUNTIME_CHECK.
Date: Fri, 08 Nov 2024 20:26:20 +0000
Message-ID: <E1t9VYi-000s22-EH@gemulon.postgresql.org> (raw)

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(-)



Message-ID: <E1t9VYi-000s22-EH@gemulon.postgresql.org>
Permalink:  ../E1t9VYi-000s22-EH@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1t9VYi-000s22-EH@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-committers@postgresql.org
  Cc: nathan@postgresql.org, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: Move check for USE_AVX512_POPCNT_WITH_RUNTIME_CHECK.
  In-Reply-To: <E1t9VYi-000s22-EH@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox