Re: Compile error on the aarch64 platform: Missing asm/hwcap.h

Поиск
Список
Период
Сортировка
От 高增琦
Тема Re: Compile error on the aarch64 platform: Missing asm/hwcap.h
Дата
Msg-id CAFmBtr2Xu_R32RsmDOcTrN+Y6PJFROpYsQEi5ZA8XYNz56HwEw@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Compile error on the aarch64 platform: Missing asm/hwcap.h  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Thanks for the quick fix.

There's another one (the last one) in the previous email that needs fixing:

HWCAP_SVE for pg_popcount_aarch64.c

😅

Tom Lane <tgl@sss.pgh.pa.us> 于2025年11月18日周二 04:31写道:
I wrote:
> ... I'm inclined to think
> it's better to do something like

> +#if defined(__linux__) && (defined(__aarch64__) ? !defined(HWCAP_CRC32) : !defined(HWCAP2_CRC32))

> or perhaps that's too unreadable and we should break it out into
> multiple #if's.

I tried it as a nest of #ifdef's and decided that was none too
readable either, so pushed it as above.  Thanks for the report!

                        regards, tom lane


--

В списке pgsql-hackers по дате отправления: