Re: use ARM intrinsics in pg_lfind32() where available

Поиск
Список
Период
Сортировка
От Nathan Bossart
Тема Re: use ARM intrinsics in pg_lfind32() where available
Дата
Msg-id 20220819222814.GA401294@nathanxps13
обсуждение исходный текст
Ответ на Re: use ARM intrinsics in pg_lfind32() where available  (Andres Freund <andres@anarazel.de>)
Ответы Re: use ARM intrinsics in pg_lfind32() where available  (John Naylor <john.naylor@enterprisedb.com>)
Список pgsql-hackers
On Fri, Aug 19, 2022 at 02:26:02PM -0700, Andres Freund wrote:
> Are you sure there's not an appropriate define for us to use here instead of a
> configure test? E.g.
> 
> echo|cc -dM -P -E -|grep -iE 'arm|aarch'
> ...
> #define __AARCH64_SIMD__ 1
> ...
> #define __ARM_NEON 1
> #define __ARM_NEON_FP 0xE
> #define __ARM_NEON__ 1
> ..
> 
> I strikes me as non-scalable to explicitly test all the simd instructions we'd
> use.

Thanks for the pointer.  GCC, Clang, and the Arm compiler all seem to
define __ARM_NEON, so here is a patch that uses that instead.

-- 
Nathan Bossart
Amazon Web Services: https://aws.amazon.com

Вложения

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

Предыдущее
От: David Zhang
Дата:
Сообщение: Re: Avoid unecessary MemSet call (src/backend/utils/cache/relcache.c)
Следующее
От: Cary Huang
Дата:
Сообщение: sslinfo extension - add notbefore and notafter timestamps