Re: pgsql: Fix compiler builtin usage in new pg_bitutils.c

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: pgsql: Fix compiler builtin usage in new pg_bitutils.c
Дата
Msg-id 20190215193649.GA32096@alvherre.pgsql
обсуждение исходный текст
Ответ на Re: pgsql: Fix compiler builtin usage in new pg_bitutils.c  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: pgsql: Fix compiler builtin usage in new pg_bitutils.c
Список pgsql-committers
On 2019-Feb-15, Tom Lane wrote:

> Meh.  I don't see why this entire function should exist if there
> is nothing for it to do.  I'm inclined to think that somewhere
> there needs to be a symbol NEED_POPCOUNT_CHOOSING that is only
> enabled if we have all three of HAVE__BUILTIN_POPCOUNT, nonempty
> CFLAGS_POPCOUNT, and HAVE__GET_CPUID || HAVE__CPUID.  Possibly
> we should gate building of pg_bitutils_hwpopcnt.c that way too?
> Not much point in building that file if we have no way to figure
> out when to use it.

I'm done with this stuff.  Anybody feel free to run with it, but for a
barely noticeable performance improvement it's not going to be me.

-- 
Álvaro Herrera                https://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services


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

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: pgsql: Revert attempts to use POPCNT etc instructions
Следующее
От: Tom Lane
Дата:
Сообщение: Re: pgsql: Fix compiler builtin usage in new pg_bitutils.c