]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Replace internal C function pg_hypot() by standard hypot()
authorPeter Eisentraut <peter@eisentraut.org>
Wed, 26 Nov 2025 06:46:33 +0000 (07:46 +0100)
committerPeter Eisentraut <peter@eisentraut.org>
Wed, 26 Nov 2025 06:48:29 +0000 (07:48 +0100)
commit8fe4aef8297b9f6b27a8f9422f3fdef1f79bb189
tree3d048ce351b38d355174b2492c6e8ec175f86951
parent47c7a7ebc89eb6b8cf81c937885864f994784d38
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
src/backend/access/spgist/spgproc.c
src/backend/utils/adt/geo_ops.c
src/backend/utils/adt/geo_spgist.c
src/include/utils/geo_decls.h