Refactor code for setting pg_popcount* function pointers.
Nathan Bossart <nathan@postgresql.org>
Refactor code for setting pg_popcount* function pointers. Presently, there are three copies of this code, and a proposed follow-up patch would add more code to each copy. This commit introduces a new inline function for this code and makes use of it in the pg_popcount*_choose functions, thereby reducing code duplication. Author: Paul Amonson Discussion: https://postgr.es/m/BL1PR11MB5304097DF7EA81D04C33F3D1DCA6A%40BL1PR11MB5304.namprd11.prod.outlook.com
Files
| Path | Change | +/− |
|---|---|---|
| src/port/pg_bitutils.c | modified | +9 −28 |
Discussion
- Popcount optimization using AVX512 173 messages · 2023-11-02 → 2024-11-07