postgresql/src/include/common
Nathan Bossart 6b80394781 Introduce overflow-safe integer comparison functions.
This commit adds integer comparison functions that are designed to
be as efficient as possible while avoiding overflow.  A follow-up
commit will make use of these functions in many of the in-tree
qsort() comparators.  The new functions are not better in all cases
(e.g., when the comparator function is inlined), so it is important
to consider the context before using them.

Author: Mats Kindahl
Reviewed-by: Tom Lane, Heikki Linnakangas, Andres Freund, Thomas Munro, Andrey Borodin, Fabrízio de Royes Mello
Discussion: https://postgr.es/m/CA%2B14426g2Wa9QuUpmakwPxXFWG_1FaY0AsApkvcTBy-YfS6uaw%40mail.gmail.com
2024-02-16 13:37:02 -06:00
..
archive.h Update copyright for 2024 2024-01-03 20:49:05 -05:00
base64.h Update copyright for 2024 2024-01-03 20:49:05 -05:00
blkreftable.h Update copyright for 2024 2024-01-03 20:49:05 -05:00
checksum_helper.h Update copyright for 2024 2024-01-03 20:49:05 -05:00
compression.h Update copyright for 2024 2024-01-03 20:49:05 -05:00
config_info.h Update copyright for 2024 2024-01-03 20:49:05 -05:00
connect.h Update copyright for 2024 2024-01-03 20:49:05 -05:00
controldata_utils.h Update copyright for 2024 2024-01-03 20:49:05 -05:00
cryptohash.h Update copyright for 2024 2024-01-03 20:49:05 -05:00
fe_memutils.h Update copyright for 2024 2024-01-03 20:49:05 -05:00
file_perm.h Update copyright for 2024 2024-01-03 20:49:05 -05:00
file_utils.h Update copyright for 2024 2024-01-03 20:49:05 -05:00
hashfn.h Update copyright for 2024 2024-01-03 20:49:05 -05:00
hashfn_unstable.h Fix warnings in cpluspluscheck 2024-02-08 10:07:26 +07:00
hmac.h Update copyright for 2024 2024-01-03 20:49:05 -05:00
int.h Introduce overflow-safe integer comparison functions. 2024-02-16 13:37:02 -06:00
int128.h Update copyright for 2024 2024-01-03 20:49:05 -05:00
ip.h Update copyright for 2024 2024-01-03 20:49:05 -05:00
jsonapi.h Update copyright for 2024 2024-01-03 20:49:05 -05:00
keywords.h Update copyright for 2024 2024-01-03 20:49:05 -05:00
kwlookup.h Update copyright for 2024 2024-01-03 20:49:05 -05:00
link-canary.h Update copyright for 2024 2024-01-03 20:49:05 -05:00
logging.h Update copyright for 2024 2024-01-03 20:49:05 -05:00
md5.h Update copyright for 2024 2024-01-03 20:49:05 -05:00
openssl.h Update copyright for 2024 2024-01-03 20:49:05 -05:00
parse_manifest.h Update copyright for 2024 2024-01-03 20:49:05 -05:00
percentrepl.h Update copyright for 2024 2024-01-03 20:49:05 -05:00
pg_lzcompress.h Apply PGDLLIMPORT markings broadly. 2022-04-08 08:16:38 -04:00
pg_prng.h Update copyright for 2024 2024-01-03 20:49:05 -05:00
relpath.h Update copyright for 2024 2024-01-03 20:49:05 -05:00
restricted_token.h Update copyright for 2024 2024-01-03 20:49:05 -05:00
saslprep.h Update copyright for 2024 2024-01-03 20:49:05 -05:00
scram-common.h Update copyright for 2024 2024-01-03 20:49:05 -05:00
sha1.h Update copyright for 2024 2024-01-03 20:49:05 -05:00
sha2.h Update copyright for 2024 2024-01-03 20:49:05 -05:00
shortest_dec.h Update copyright for 2024 2024-01-03 20:49:05 -05:00
string.h Update copyright for 2024 2024-01-03 20:49:05 -05:00
unicode_category.h Update copyright for 2024 2024-01-03 20:49:05 -05:00
unicode_category_table.h Update copyright for 2024 2024-01-03 20:49:05 -05:00
unicode_east_asian_fw_table.h Update Unicode data to Unicode 15.1.0 2023-09-18 07:26:34 +02:00
unicode_nonspacing_table.h Update Unicode data to Unicode 15.0.0 2022-09-19 18:30:05 -04:00
unicode_norm.h Update copyright for 2024 2024-01-03 20:49:05 -05:00
unicode_norm_hashfunc.h Update copyright for 2024 2024-01-03 20:49:05 -05:00
unicode_norm_table.h Update copyright for 2024 2024-01-03 20:49:05 -05:00
unicode_normprops_table.h Update Unicode data to Unicode 15.0.0 2022-09-19 18:30:05 -04:00
unicode_version.h Update copyright for 2024 2024-01-03 20:49:05 -05:00
username.h Update copyright for 2024 2024-01-03 20:49:05 -05:00