From: | John Naylor <john(dot)naylor(at)postgresql(dot)org> |
---|---|
To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
Subject: | pgsql: Support SSE2 intrinsics where available |
Date: | 2022-08-04 06:52:01 |
Message-ID: | E1oJUi8-000Ene-SV@gemulon.postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers |
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
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/56f2c7b58bda00ea5ecc56a93467ed9eae6b3db7
Modified Files
--------------
src/include/port/simd.h | 30 ++++++++++++++++++++++++++++++
1 file changed, 30 insertions(+)
From | Date | Subject | |
---|---|---|---|
Next Message | Michael Paquier | 2022-08-04 08:37:29 | pgsql: Fix inconsistent comments for some function declarations in head |
Previous Message | Masahiko Sawada | 2022-08-04 01:23:37 | Re: pgsql: Add wait_for_subscription_sync for TAP tests. |