pgsql: Improve style of pg_lfind32().

From: Nathan Bossart <nathan(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Improve style of pg_lfind32().
Date: 2024-03-28 01:28:46
Message-ID: E1rpeZS-0062P6-CD@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/7188a7806d208430aa5c717a1aefdf4980ed3d4d

Modified Files
--------------
src/include/port/pg_lfind.h | 62 +++++++++++++++++++--------------------------
1 file changed, 26 insertions(+), 36 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Masahiko Sawada 2024-03-28 07:33:14 pgsql: Improve tab completion for ALTER TABLE ALTER COLUMN SET in psql.
Previous Message Masahiko Sawada 2024-03-28 01:03:58 pgsql: Rethink create and attach APIs of shared TidStore.