From: | John Naylor <john(dot)naylor(at)enterprisedb(dot)com> |
---|---|
To: | PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org> |
Subject: | bitscan forward/reverse on Windows |
Date: | 2023-01-25 01:42:44 |
Message-ID: | CAFBsxsEPc+FnX_0vmmQ5DHv60sk4rL_RZJ+MD6ei=76L0kFMvA@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | 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.
--
John Naylor
EDB: http://www.enterprisedb.com
Attachment | Content-Type | Size |
---|---|---|
v3-0002-Add-MSVC-support-for-bitscan-reverse-forward.patch | text/x-patch | 3.6 KB |
v3-0001-Add-asserts-to-verify-bitscan-intrinsics.patch | text/x-patch | 4.1 KB |
v3-0003-Add-new-symbols-for-reducing-repetition.patch | text/x-patch | 5.4 KB |
From | Date | Subject | |
---|---|---|---|
Next Message | Justin Pryzby | 2023-01-25 01:43:49 | Re: GUCs to control abbreviated sort keys |
Previous Message | Masahiko Sawada | 2023-01-25 01:42:05 | Re: [PoC] Improve dead tuple storage for lazy vacuum |