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 native CRC instructions on 64-bit LoongArch
Date: Thu, 10 Aug 2023 04:46:49 +0000
Message-ID: <E1qTxZQ-001Ju7-8O@gemulon.postgresql.org> (raw)

Use native CRC instructions on 64-bit LoongArch

As with the Intel and Arm CRC instructions, compiler intrinsics for
them must be supported by the compiler. In contrast, no runtime check
is needed. Aligned memory access is faster, so use the Arm coding as
a model.

YANG Xudong

Discussion: https://postgr.es/m/b522a0c5-e3b2-99cc-6387-58134fb88cbe%40ymatrix.cn

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/4d14ccd6af6e788a7b79ff3ed77bda5bc71d2edc

Modified Files
--------------
config/c-compiler.m4           | 33 +++++++++++++++++++
configure                      | 74 +++++++++++++++++++++++++++++++++++++-----
configure.ac                   | 38 +++++++++++++++++-----
meson.build                    | 24 ++++++++++++++
src/include/pg_config.h.in     |  3 ++
src/include/port/pg_crc32c.h   |  9 +++++
src/port/meson.build           |  3 ++
src/port/pg_crc32c_loongarch.c | 73 +++++++++++++++++++++++++++++++++++++++++
8 files changed, 240 insertions(+), 17 deletions(-)



Message-ID: <E1qTxZQ-001Ju7-8O@gemulon.postgresql.org>
Permalink:  ../E1qTxZQ-001Ju7-8O@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1qTxZQ-001Ju7-8O@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: john.naylor@postgresql.org, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: Use native CRC instructions on 64-bit LoongArch
  In-Reply-To: <E1qTxZQ-001Ju7-8O@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