Improve style of pg_lfind32().
authorNathan Bossart
Thu, 28 Mar 2024 01:26:05 +0000 (20:26 -0500)
committerNathan Bossart
Thu, 28 Mar 2024 01:26:05 +0000 (20:26 -0500)
commit7188a7806d208430aa5c717a1aefdf4980ed3d4d
tree05f3621794b9a8ec772dea1277839f73b66360f1
parent2d8f56dabbfd2f85da9a4e0fe4a4b4d6654864f1
Improve style of pg_lfind32().

This commit simplifies pg_lfind32() a bit by moving the standard
one-by-one linear search code to an inline helper function.

Reviewed-by: Tom Lane
Discussion: https://postgr.es/m/20240327013616.GA3940109%40nathanxps13
src/include/port/pg_lfind.h