diff options
author | John Naylor <john.naylor@postgresql.org> | 2023-02-08 12:05:58 +0700 |
---|---|---|
committer | John Naylor <john.naylor@postgresql.org> | 2023-02-20 14:55:32 +0700 |
commit | 67731974644ce77129d282434065c3f0be04be92 (patch) | |
tree | 7bb36feeb6086a8985dc9fe3386c8146ff71911d /src/backend/executor/execParallel.c | |
parent | 204b0cbecb82ab3fde2e12998a89e7227cd64094 (diff) | |
download | postgresql-67731974644ce77129d282434065c3f0be04be92.tar.gz postgresql-67731974644ce77129d282434065c3f0be04be92.zip |
Add MSVC support for pg_leftmost_one_pos32() and friends
To allow testing for general support for fast bitscan intrinsics,
add symbols HAVE_BITSCAN_REVERSE and HAVE_BITSCAN_FORWARD.
Also do related cleanup in AllocSetFreeIndex(): Previously, we
tested for HAVE__BUILTIN_CLZ and copied the relevant internals of
pg_leftmost_one_pos32(), with a special fallback that does less
work than the general fallback for that function. Now that we have
a more general test, we just call pg_leftmost_one_pos32() directly
for platforms with intrinsic support. On gcc at least, there is no
difference in the binary for non-assert builds.
Discussion: https://www.postgresql.org/message-id/CAFBsxsEPc%2BFnX_0vmmQ5DHv60sk4rL_RZJ%2BMD6ei%3D76L0kFMvA%40mail.gmail.com
Diffstat (limited to 'src/backend/executor/execParallel.c')
0 files changed, 0 insertions, 0 deletions