summaryrefslogtreecommitdiff
path: root/contrib/btree_gist/btree_cash.c
diff options
context:
space:
mode:
authorAndres Freund2017-10-30 05:13:54 +0000
committerAndres Freund2017-12-13 00:55:37 +0000
commit4d6ad31257adaf8a51e1c4377d96afa656d9165f (patch)
tree71d0e8fffcaa28226dc580495273d2a428f2e94d /contrib/btree_gist/btree_cash.c
parent95b52351fe966c93791462274dfa7af7e50d2da1 (diff)
Provide overflow safe integer math inline functions.
It's not easy to get signed integer overflow checks correct and fast. Therefore abstract the necessary infrastructure into a common header providing addition, subtraction and multiplication for 16, 32, 64 bit signed integers. The new macros aren't yet used, but a followup commit will convert several open coded overflow checks. Author: Andres Freund, with some code stolen from Greg Stark Reviewed-By: Robert Haas Discussion: https://postgr.es/m/[email protected]
Diffstat (limited to 'contrib/btree_gist/btree_cash.c')
0 files changed, 0 insertions, 0 deletions