| From: | Nathan Bossart <nathandbossart(at)gmail(dot)com> |
|---|---|
| To: | John Naylor <johncnaylorls(at)gmail(dot)com> |
| Cc: | PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org> |
| Subject: | Re: vectorized CRC on ARM64 |
| Date: | 2026-04-03 13:54:36 |
| Message-ID: | ac_GnKLspHmqIn50@nathan |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
On Fri, Apr 03, 2026 at 03:22:59PM +0700, John Naylor wrote:
> I went with the following for v5, and it passes MacOS on my Github CI:
>
> + /* set fallbacks */
> +#ifdef USE_ARMV8_CRC32C
> + /* On e.g. MacOS, our runtime feature detection doesn't work */
> + pg_comp_crc32c = pg_comp_crc32c_armv8;
> +#else
> + pg_comp_crc32c = pg_comp_crc32c_sb8;
> +#endif
> + [...crc and pmull checks]
>
> That should keep scalar hardware support working, but now it'll only
> use direct calls for constant inputs.
v5 LGTM
--
nathan
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Etsuro Fujita | 2026-04-03 13:55:54 | Re: Import Statistics in postgres_fdw before resorting to sampling. |
| Previous Message | KAZAR Ayoub | 2026-04-03 13:53:47 | Re: Add pg_stat_vfdcache view for VFD cache statistics |