pgsql: Yet further adjust degree-based trig functions for more portabil

Поиск
Список
Период
Сортировка
От Tom Lane
Тема pgsql: Yet further adjust degree-based trig functions for more portabil
Дата
Msg-id E1aNOqd-0008Mw-S9@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Yet further adjust degree-based trig functions for more portability.

Buildfarm member cockatiel is still saying that cosd(60) isn't 0.5.
What seems likely is that the subexpression (1.0 - cos(x)) isn't being
rounded to double width before more arithmetic is done on it, so force
that by storing it into a variable.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/00347575e2754b1aaacd357776560803564d3f35

Modified Files
--------------
src/backend/utils/adt/float.c |    4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)


В списке pgsql-committers по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: pgsql: Still further adjust degree-based trig functions for more portab
Следующее
От: Simon Riggs
Дата:
Сообщение: pgsql: Correct comment in GetConflictingVirtualXIDs()