Replace internal C function pg_hypot() by standard hypot()
Peter Eisentraut <peter@eisentraut.org>
Author:
Peter Eisentraut <peter@eisentraut.org>
Date: 2025-11-26T06:48:29Z
Releases:
19 (unreleased)
Replace internal C function pg_hypot() by standard hypot() The code comment said, "It is expected that this routine will eventually be replaced with the C99 hypot() function.", so let's do that now. This function is tested via the geometry regression test, so if it is faulty on any platform, it will show up there. Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us> Discussion: https://www.postgresql.org/message-id/flat/170308e6-a7a3-4484-87b2-f960bb564afa%40eisentraut.org
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/access/spgist/spgproc.c | modified | +1 −1 |
| src/backend/utils/adt/geo_ops.c | modified | +4 −72 |
| src/backend/utils/adt/geo_spgist.c | modified | +1 −1 |
| src/include/utils/geo_decls.h | modified | +0 −8 |
Discussion
- more C99 cleanup 9 messages · 2025-11-21 → 2025-12-02