Use native CRC instructions on 64-bit LoongArch
authorJohn Naylor <john.naylor@postgresql.org>
Thu, 10 Aug 2023 04:36:15 +0000 (11:36 +0700)
committerJohn Naylor <john.naylor@postgresql.org>
Thu, 10 Aug 2023 04:36:15 +0000 (11:36 +0700)
commit4d14ccd6af6e788a7b79ff3ed77bda5bc71d2edc
treebef29664090f4cad6db22352d3c8a401bf724c27
parentfa2e874946c5b9f23394358c131e987df7cc8ffb
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
config/c-compiler.m4
configure
configure.ac
meson.build
src/include/pg_config.h.in
src/include/port/pg_crc32c.h
src/port/meson.build
src/port/pg_crc32c_loongarch.c [new file with mode: 0644]