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

From: tgl(at)postgresql(dot)org (Tom Lane)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Replace the naive HYPOT() macro with a standards-conformant
Date: 2010-08-03 21:21:04
Message-ID: 20100803212104.0FCE37541D7@cvs.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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)

Browse pgsql-committers by date

  From Date Subject
Next Message Robert Haas 2010-08-03 23:09:29 pgsql: Allow numeric to use a more compact, 2-byte header in many cases.
Previous Message Robert Haas 2010-08-03 19:53:20 pgsql: Regression tests for new btree_gist "not equals" support.