pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: John Naylor <john.naylor@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Use direct function calls for pg_popcount{32,64} on non-x86 plat
Date: Mon, 16 Aug 2021 15:53:07 +0000
Message-ID: <E1mFevD-0007nU-2h@gemulon.postgresql.org> (raw)

Use direct function calls for pg_popcount{32,64} on non-x86 platforms

Previously, all pg_popcount{32,64} calls were indirected through
a function pointer, even though we had no fast implementation for
non-x86 platforms. Instead, for those platforms use wrappers around
the pg_popcount{32,64}_slow functions.

Review and additional hacking by David Rowley
Reviewed by Álvaro Herrera

Discussion: https://www.postgresql.org/message-id/flat/CAFBsxsE7otwnfA36Ly44zZO%2Bb7AEWHRFANxR1h1kxveEV%3DghLQ%4...

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/4864c8e8f184a35ed1c2c51a15e9a455e9fbb398

Modified Files
--------------
src/include/port/pg_bitutils.h | 32 +++++++++++++++++++++++++++-
src/port/pg_bitutils.c         | 48 +++++++++++++++++++-----------------------
2 files changed, 53 insertions(+), 27 deletions(-)



Message-ID: <E1mFevD-0007nU-2h@gemulon.postgresql.org>
Permalink:  ../E1mFevD-0007nU-2h@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1mFevD-0007nU-2h@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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: john.naylor@postgresql.org
  Subject: Re: pgsql: Use direct function calls for pg_popcount{32,64} on non-x86 plat
  In-Reply-To: <E1mFevD-0007nU-2h@gemulon.postgresql.org>
  References: <E1mFevD-0007nU-2h@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