aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/adt/numeric.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2010-08-03 21:21:03 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2010-08-03 21:21:03 +0000
commitdb04f2b3225aa7e6d496a087c4c0e46161744573 (patch)
tree3b266b93ef231ee79180afba740b3c472ad28d8a /src/backend/utils/adt/numeric.c
parent90a391c645774c2606ae4b82f4a07130afdd0a42 (diff)
downloadpostgresql-db04f2b3225aa7e6d496a087c4c0e46161744573.tar.gz
postgresql-db04f2b3225aa7e6d496a087c4c0e46161744573.zip
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
Diffstat (limited to 'src/backend/utils/adt/numeric.c')
0 files changed, 0 insertions, 0 deletions