Use __attribute__((target(sse4.2))) for SSE42 CRC32C

From: "Devulapalli, Raghuveer" <raghuveer(dot)devulapalli(at)intel(dot)com>
To: "pgsql-hackers(at)lists(dot)postgresql(dot)org" <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Use __attribute__((target(sse4.2))) for SSE42 CRC32C
Date: 2024-11-07 20:48:54
Message-ID: PH8PR11MB8286BE735A463468415D46B5FB5C2@PH8PR11MB8286.namprd11.prod.outlook.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Based on the discussion in PostgreSQL: Re: Proposal for Updating CRC32C with AVX-512 Algorithm.<https://www.postgresql.org/message-id/ZyziAXhsgfqakSI4%40nathan>, this patch leverages pg_attribute_target to build the SSE42 CRC32C code using function attributes.

Raghuveer

Attachment Content-Type Size
v1-0001-Use-__attribute__-target-sse4.2-for-SSE42-CRC32C.patch application/octet-stream 11.1 KB

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Devulapalli, Raghuveer 2024-11-07 20:50:48 RE: Proposal for Updating CRC32C with AVX-512 Algorithm.
Previous Message Nathan Bossart 2024-11-07 20:40:32 Re: Popcount optimization using AVX512