[PATCH] Add loongarch native checksum implementation. - Mailing list pgsql-hackers

From YANG Xudong
Subject [PATCH] Add loongarch native checksum implementation.
Date
Msg-id b522a0c5-e3b2-99cc-6387-58134fb88cbe@ymatrix.cn
Whole thread Raw
Responses Re: [PATCH] Add loongarch native checksum implementation.
List pgsql-hackers
Hi,

This patch tries to add loongarch native crc32 check with crcc.* 
instructions to postgresql.

The patch is tested on my Loongson 3A5000 machine with Loong Arch Linux 
and GCC 13.1.0 / clang 16.0.0 with

- default ./configure
- default meson setup


See:

[1]: 
https://loongson.github.io/LoongArch-Documentation/LoongArch-Vol1-EN.html#crc-check-instructions
[2]: 
https://gcc.gnu.org/onlinedocs/gcc/LoongArch-Base-Built-in-Functions.html
[3]: 
https://github.com/llvm/llvm-project/blob/release/16.x/clang/include/clang/Basic/BuiltinsLoongArch.def#L36-L39
Attachment

pgsql-hackers by date:

Previous
From: Masahiko Sawada
Date:
Subject: Re: PG 16 draft release notes ready
Next
From: Jaime Casanova
Date:
Subject: Re: is pg_log_standby_snapshot() really needed?