Обсуждение: pgsql: Replace the naive HYPOT() macro with a standards-conformant

Поиск
Список
Период
Сортировка

pgsql: Replace the naive HYPOT() macro with a standards-conformant

От
tgl@postgresql.org (Tom Lane)
Дата:
Log Message:
-----------
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

Modified Files:
--------------
    pgsql/src/backend/utils/adt:
        geo_ops.c (r1.108 -> r1.109)
        (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/utils/adt/geo_ops.c?r1=1.108&r2=1.109)
    pgsql/src/include/utils:
        geo_decls.h (r1.57 -> r1.58)
        (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/include/utils/geo_decls.h?r1=1.57&r2=1.58)