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

Tom Lane <tgl@sss.pgh.pa.us>

Commit: db04f2b3225aa7e6d496a087c4c0e46161744573
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2010-08-03T21:21:03Z
Releases: 9.1.0
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

Files

PathChange+/−
src/backend/utils/adt/geo_ops.c modified +61 −1
src/include/utils/geo_decls.h modified +3 −2