Improve style of pg_lfind32().

Nathan Bossart <nathan@postgresql.org>

Commit: 7188a7806d208430aa5c717a1aefdf4980ed3d4d
Author: Nathan Bossart <nathan@postgresql.org>
Date: 2024-03-28T01:26:05Z
Releases: 17.0
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

Files

PathChange+/−
src/include/port/pg_lfind.h modified +26 −36

Discussion