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

From Tom Lane
Subject pgsql: Yet further adjust degree-based trig functions for more portabil
Date
Msg-id E1aNOqd-0008Mw-S9@gemulon.postgresql.org
Whole thread Raw
List 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 by date:

Previous
From: Tom Lane
Date:
Subject: pgsql: Still further adjust degree-based trig functions for more portab
Next
From: Simon Riggs
Date:
Subject: pgsql: Correct comment in GetConflictingVirtualXIDs()