Re: Using POPCNT and other advanced bit manipulation instructions

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Using POPCNT and other advanced bit manipulation instructions
Дата
Msg-id 11319.1550115484@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Using POPCNT and other advanced bit manipulation instructions  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Using POPCNT and other advanced bit manipulation instructions  (Thomas Munro <thomas.munro@enterprisedb.com>)
Список pgsql-hackers
And, while I'm complaining: why the devil is use of the compiler builtins
gated by HAVE__GET_CPUID?  This is unbelievably Intel-centric, because
it prevents use of the builtins on other architectures.  If the builtin
exists, we should use it, full stop.  There's no reason to expect that it
would be slower than hand-rolled code, regardless of the architecture.

I'd be inclined to rip out all of the run-time-detection logic here;
I doubt any of it is buying anything that's worth the price of an
indirect call.

            regards, tom lane


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

Предыдущее
От: "Tsunakawa, Takayuki"
Дата:
Сообщение: RE: Libpq support to connect to standby server as priority
Следующее
От: Michael Paquier
Дата:
Сообщение: Re: pg_basebackup ignores the existing data directory permissions