aboutsummaryrefslogtreecommitdiff
path: root/contrib/intarray/_intbig_gist.c
diff options
context:
space:
mode:
authorNathan Bossart <nathan@postgresql.org>2024-02-16 13:37:02 -0600
committerNathan Bossart <nathan@postgresql.org>2024-02-16 13:37:02 -0600
commit6b80394781c8de17fe7cae6996476088af3c319f (patch)
treedb7b1a619634980a469d0714ffc80f6e89ab2b39 /contrib/intarray/_intbig_gist.c
parent73f0a1326608ac3a7d390706fdeec59fe4dc42c0 (diff)
downloadpostgresql-6b80394781c8de17fe7cae6996476088af3c319f.tar.gz
postgresql-6b80394781c8de17fe7cae6996476088af3c319f.zip
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
Diffstat (limited to 'contrib/intarray/_intbig_gist.c')
0 files changed, 0 insertions, 0 deletions