]> granicus.if.org Git - postgresql/commit
Yet further adjust degree-based trig functions for more portability.
authorTom Lane <tgl@sss.pgh.pa.us>
Sun, 24 Jan 2016 17:53:03 +0000 (12:53 -0500)
committerTom Lane <tgl@sss.pgh.pa.us>
Sun, 24 Jan 2016 17:53:03 +0000 (12:53 -0500)
commit00347575e2754b1aaacd357776560803564d3f35
tree03a650732e8469f36d116d24de79ff90f86a5bc4
parent360f67d31a5656991122b89c9ca22a860f41512c
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.
src/backend/utils/adt/float.c