Replace the naive HYPOT() macro with a standards-conformant hypotenuse
Tom Lane <tgl@sss.pgh.pa.us>
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
| Path | Change | +/− |
|---|---|---|
| src/backend/utils/adt/geo_ops.c | modified | +61 −1 |
| src/include/utils/geo_decls.h | modified | +3 −2 |