Import changes from IMath versions (1.3, 1.29].
authorNoah Misch <[email protected]>
Sat, 16 Feb 2019 21:12:28 +0000 (13:12 -0800)
committerNoah Misch <[email protected]>
Sat, 16 Feb 2019 21:12:28 +0000 (13:12 -0800)
commit48e24ba6b7fd3bfd156b51e8d768fd48df0d288b
tree640f8e3a9121f7b5d7628287ba46c08458e3fdc6
parentd1299aabbd0b4ae860078691b628dc6b90698039
Import changes from IMath versions (1.3, 1.29].

Upstream fixed bugs over the years, but none are confirmed to have
affected pgcrypto.  We're better off naively tracking upstream than
reactively maintaining a twelve-year-old snapshot of upstream.  Add a
header comment describing the synchronization procedure.  Discard use of
INVERT_COMPARE_RESULT(); the domain of the comparisons in question is
{-1,0,1}, controlled entirely by code in imath.c.

Andrew Gierth reviewed the Makefile change.  Tom Lane reviewed the
synchronization procedure description.

Discussion: https://postgr.es/m/20190203035704[email protected]
contrib/pgcrypto/Makefile
contrib/pgcrypto/imath.c
contrib/pgcrypto/imath.h