Yet further adjust degree-based trig functions for more portability.

Tom Lane <tgl@sss.pgh.pa.us>

Commit: 00347575e2754b1aaacd357776560803564d3f35
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2016-01-24T17:53:03Z
Releases: 9.6.0
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.

Files

PathChange+/−
src/backend/utils/adt/float.c modified +3 −1