From: John Naylor <john.naylor@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Support SSE2 intrinsics where available
Date: Thu, 04 Aug 2022 06:52:01 +0000
Message-ID: <E1oJUi8-000Ene-SV@gemulon.postgresql.org> (raw)
Support SSE2 intrinsics where available
SSE2 vector instructions are part of the spec for the 64-bit x86
architecture. Until now we have relied on the compiler to autovectorize
in some limited situations, but some useful coding idioms can only be
expressed explicitly via compiler intrinsics. To this end, add a header
that defines USE_SSE2 where available. While x86-only for now, we can
add other architectures in the future. This will also be the intended
place for helper functions that use vector operations.
Reviewed by Nathan Bossart and Masahiko Sawada
Discussion: https://www.postgresql.org/message-id/CAFBsxsE2G_H_5Wbw%2BNOPm70-BK4xxKf86-mRzY%3DL2sLoQqM%2B-Q%40ma...
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/56f2c7b58bda00ea5ecc56a93467ed9eae6b3db7
Modified Files
--------------
src/include/port/simd.h | 30 ++++++++++++++++++++++++++++++
1 file changed, 30 insertions(+)
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: Support SSE2 intrinsics where available
In-Reply-To: <E1oJUi8-000Ene-SV@gemulon.postgresql.org>
References: <E1oJUi8-000Ene-SV@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