pgsql: Replace the naive HYPOT() macro with a standards-conformant - Mailing list pgsql-committers

From tgl@postgresql.org (Tom Lane)
Subject pgsql: Replace the naive HYPOT() macro with a standards-conformant
Date
Msg-id 20100803212104.0FCE37541D7@cvs.postgresql.org
Whole thread Raw
List pgsql-committers
Log Message:
-----------
Replace the naive HYPOT() macro with a standards-conformant hypotenuse
function.  This avoids unnecessary overflows and probably gives a more
accurate result as well.

Paul Matthews, reviewed by Andrew Geery

Modified Files:
--------------
    pgsql/src/backend/utils/adt:
        geo_ops.c (r1.108 -> r1.109)
        (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/utils/adt/geo_ops.c?r1=1.108&r2=1.109)
    pgsql/src/include/utils:
        geo_decls.h (r1.57 -> r1.58)
        (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/include/utils/geo_decls.h?r1=1.57&r2=1.58)

pgsql-committers by date:

Previous
From: rhaas@postgresql.org (Robert Haas)
Date:
Subject: pgsql: Regression tests for new btree_gist "not equals" support.
Next
From: rhaas@postgresql.org (Robert Haas)
Date:
Subject: pgsql: Allow numeric to use a more compact, 2-byte header in many cases.