Replace internal C function pg_hypot() by standard hypot()

Peter Eisentraut <peter@eisentraut.org>

Commit: 8fe4aef8297b9f6b27a8f9422f3fdef1f79bb189
Author: Peter Eisentraut <peter@eisentraut.org>
Date: 2025-11-26T06:48:29Z
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

Discussion