Re: Use POPCNT on MSVC

Поиск
Список
Период
Сортировка
От David Rowley
Тема Re: Use POPCNT on MSVC
Дата
Msg-id CAApHDvrWb6vYOSPfCY+zzu7-eQJkwXXqLdkKnvYHP1u3rsMRWw@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Use POPCNT on MSVC  (John Naylor <john.naylor@enterprisedb.com>)
Ответы Re: Use POPCNT on MSVC  (John Naylor <john.naylor@enterprisedb.com>)
Список pgsql-hackers
On Thu, 5 Aug 2021 at 07:02, John Naylor <john.naylor@enterprisedb.com> wrote:
> > #if defined(_MSC_VER) && defined(_WIN64)
> > #define HAVE_X86_64_POPCNTQ
> > #endif
>
> That seems fine. I don't know PG can build with Arm on Windows, but for the cpuid to work, it seems safer to also
checkfor __x86_64?
 

That's a good point. I've adjusted it to do #if defined(_MSC_VER) &&
defined(_M_AMD64).

I've attached a v2 patch which I think is more along the lines of what
you had in mind.

David

Вложения

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

Предыдущее
От: Mark Dilger
Дата:
Сообщение: Re: Another regexp performance improvement: skip useless paren-captures
Следующее
От: John Naylor
Дата:
Сообщение: Re: Use POPCNT on MSVC