• Tom Lane's avatar
    Further portability tweaks for float4/float8 hash functions. · 718978d9
    Tom Lane authored
    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.
    718978d9
hashfunc.c 9.81 KB