]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Further portability tweaks for float4/float8 hash functions.
authorTom Lane <tgl@sss.pgh.pa.us>
Sat, 4 Sep 2021 20:29:08 +0000 (16:29 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Sat, 4 Sep 2021 20:29:08 +0000 (16:29 -0400)
commita5e8f7b3798b6fb9a4f3129a5eab98b7087c8a80
treefbeb3d4fb32dd63e7008f569fcb66e428145b160
parent121cdaff10686066a5e03eede8fa9ee562a0ad76
Further portability tweaks for float4/float8 hash functions.

Attempting to make hashfloat4() look as much as possible like
hashfloat8(), I'd figured I could replace NaNs with get_float4_nan()
before widening to float8.  However, results from protosciurus
and topminnow show that on some platforms that produces a different
bit-pattern from get_float8_nan(), breaking the intent of ce773f230.
Rearrange so that we use the result of get_float8_nan() for all NaN
cases.  As before, back-patch.
src/backend/access/hash/hashfunc.c