bitscan forward/reverse on Windows - Mailing list pgsql-hackers

From John Naylor
Subject bitscan forward/reverse on Windows
Date
Msg-id CAFBsxsEPc+FnX_0vmmQ5DHv60sk4rL_RZJ+MD6ei=76L0kFMvA@mail.gmail.com
Whole thread Raw
Responses Re: bitscan forward/reverse on Windows
List pgsql-hackers
Attached is a quick-and-dirty attempt to add MSVC support for the rightmost/leftmost-one-pos functions.

0001 adds asserts to the existing coding.
0002 adds MSVC support. Tests pass on CI, but it's of course possible that there is some bug that prevents hitting the fastpath. I've mostly used the platform specific types, so some further cleanup might be needed.
0003 tries one way to reduce the duplication that arose in 0002. Maybe there is a better way.

--
Attachment

pgsql-hackers by date:

Previous
From: Masahiko Sawada
Date:
Subject: Re: [PoC] Improve dead tuple storage for lazy vacuum
Next
From: Justin Pryzby
Date:
Subject: Re: GUCs to control abbreviated sort keys