[PATCH] Add loongarch native checksum implementation.

From: YANG Xudong <yangxudong(at)ymatrix(dot)cn>
To: pgsql-hackers(at)lists(dot)postgresql(dot)org
Cc: wengyanqing(at)ymatrix(dot)cn, wanghao(at)ymatrix(dot)cn
Subject: [PATCH] Add loongarch native checksum implementation.
Date: 2023-06-08 05:24:02
Message-ID: b522a0c5-e3b2-99cc-6387-58134fb88cbe@ymatrix.cn
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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 Content-Type Size
0001-Add-loongarch-native-checksum-implementation.patch text/plain 17.0 KB

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Jaime Casanova 2023-06-08 05:27:23 Re: is pg_log_standby_snapshot() really needed?
Previous Message Masahiko Sawada 2023-06-08 05:23:33 Re: PG 16 draft release notes ready