From: | John Naylor <john(dot)naylor(at)postgresql(dot)org> |
---|---|
To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
Subject: | pgsql: Use native CRC instructions on 64-bit LoongArch |
Date: | 2023-08-10 04:46:49 |
Message-ID: | [email protected] |
Views: | Whole Thread | Raw Message | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers |
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
Branch
------
master
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(-)
From | Date | Subject | |
---|---|---|---|
Next Message | Jeff Davis | 2023-08-10 06:08:10 | Re: pgsql: Recalculate search_path after ALTER ROLE. |
Previous Message | Bruce Momjian | 2023-08-10 02:09:42 | pgsql: doc: PG 16 relnotes, mark current as of 2023-08-09 |