pgsql: Refactor int128.h, bringing the native and non-native code toget

From: Dean Rasheed <dean(dot)a(dot)rasheed(at)gmail(dot)com>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Refactor int128.h, bringing the native and non-native code toget
Date: 2025-08-06 10:39:21
Message-ID: E1ujbYH-00120k-1N@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Refactor int128.h, bringing the native and non-native code together.

This rearranges the code in src/include/common/int128.h, so that the
native and non-native implementations of each function are together
inside the function body (as they are in src/include/common/int.h),
rather than being in separate parts of the file.

This improves readability and maintainability, making it easier to
compare the native and non-native implementations, and avoiding the
need to duplicate every function comment and declaration.

Author: Dean Rasheed <dean(dot)a(dot)rasheed(at)gmail(dot)com>
Reviewed-by: John Naylor <johncnaylorls(at)gmail(dot)com>
Discussion: https://postgr.es/m/CAEZATCWgBMc9ZwKMYqQpaQz2X6gaamYRB+RnMsUNcdMcL2Mj_w@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/5761d991c98471b7dab3147b71f9caf00a6f8ce4

Modified Files
--------------
src/include/common/int128.h | 112 +++++++++++++++++---------------------------
1 file changed, 42 insertions(+), 70 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Fujii Masao 2025-08-06 13:52:56 pgsql: Fix typo in comment.
Previous Message Dean Rasheed 2025-08-06 09:18:35 pgsql: Fix printf format specfiers in test_int128 module.