Use POPCNT on MSVC

Поиск
Список
Период
Сортировка
От David Rowley
Тема Use POPCNT on MSVC
Дата
Msg-id CAApHDvqL3cbbK=GzNcwzsNR9Gi+aUvTudKkC4XgnQfXirJ_oRQ@mail.gmail.com
обсуждение исходный текст
Ответы Re: Use POPCNT on MSVC
Список pgsql-hackers
Going by [1], it looks like we can use the __popcnt and __popcnt64
intrinsic functions on MSVC if the CPU supports POPCNT.  We already
have code to check for that, we just need to enable it on MSVC.

The attached patch seems to be all that's needed.

David

[1] https://docs.microsoft.com/en-us/cpp/intrinsics/popcnt16-popcnt-popcnt64?view=msvc-140

Вложения

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

Предыдущее
От: Peter Smith
Дата:
Сообщение: Re: [HACKERS] logical decoding of two-phase transactions
Следующее
От: Amit Kapila
Дата:
Сообщение: Re: Failed transaction statistics to measure the logical replication progress