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

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Yet further adjust degree-based trig functions for more portabil
Date: 2016-01-24 17:53:11
Message-ID: E1aNOqd-0008Mw-S9@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Simon Riggs 2016-01-24 18:23:04 pgsql: Correct comment in GetConflictingVirtualXIDs()
Previous Message Tom Lane 2016-01-23 23:12:58 pgsql: Still further adjust degree-based trig functions for more portab