diff options
| author | Peter Eisentraut <peter@eisentraut.org> | 2025-11-26 07:46:33 +0100 |
|---|---|---|
| committer | Peter Eisentraut <peter@eisentraut.org> | 2025-11-26 07:48:29 +0100 |
| commit | 8fe4aef8297b9f6b27a8f9422f3fdef1f79bb189 (patch) | |
| tree | 3d048ce351b38d355174b2492c6e8ec175f86951 /src/include/utils/geo_decls.h | |
| parent | 47c7a7ebc89eb6b8cf81c937885864f994784d38 (diff) | |
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
Diffstat (limited to 'src/include/utils/geo_decls.h')
| -rw-r--r-- | src/include/utils/geo_decls.h | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/src/include/utils/geo_decls.h b/src/include/utils/geo_decls.h index 8a9df75c93c..d4f7ea31f62 100644 --- a/src/include/utils/geo_decls.h +++ b/src/include/utils/geo_decls.h @@ -88,7 +88,6 @@ FPge(double A, double B) #define FPge(A,B) ((A) >= (B)) #endif -#define HYPOT(A, B) pg_hypot(A, B) /*--------------------------------------------------------------------- * Point - (x,y) @@ -275,11 +274,4 @@ CirclePGetDatum(const CIRCLE *X) #define PG_GETARG_CIRCLE_P(n) DatumGetCircleP(PG_GETARG_DATUM(n)) #define PG_RETURN_CIRCLE_P(x) return CirclePGetDatum(x) - -/* - * in geo_ops.c - */ - -extern float8 pg_hypot(float8 x, float8 y); - #endif /* GEO_DECLS_H */ |
