Refactor code for setting pg_popcount* function pointers.
authorNathan Bossart <nathan@postgresql.org>
Tue, 2 Apr 2024 15:16:00 +0000 (10:16 -0500)
committerNathan Bossart <nathan@postgresql.org>
Tue, 2 Apr 2024 15:16:00 +0000 (10:16 -0500)
commit6687430c98f3bed1d4c5f85f05a230b0d4581a66
tree1f9284e431f597c0dd1170baad885488d2eae60e
parent38698dd38e56b6de31545ac284e36feb00d413cb
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
src/port/pg_bitutils.c