aboutsummaryrefslogtreecommitdiff
path: root/contrib/postgres_fdw/postgres_fdw.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2016-01-23 16:17:31 -0500
committerTom Lane <tgl@sss.pgh.pa.us>2016-01-23 16:17:31 -0500
commit65abaab547a5758b0d6d92df4af1663bb47d545f (patch)
tree4c99e44d3635cff7d70c983a22783fe57fd142eb /contrib/postgres_fdw/postgres_fdw.c
parent73193d82d7c8d849774bf6952dfb4287e213c572 (diff)
downloadpostgresql-65abaab547a5758b0d6d92df4af1663bb47d545f.tar.gz
postgresql-65abaab547a5758b0d6d92df4af1663bb47d545f.zip
Further adjust degree-based trig functions for more portability.
The last round didn't do it. Per Noah Misch, the problem on at least some machines is that the compiler pre-evaluates trig functions having constant arguments using code slightly different from what will be used at runtime. Therefore, we must prevent the compiler from seeing constant arguments to any of the libm trig functions used in this code. The method used here might still fail if init_degree_constants() gets inlined into the call sites. That probably won't happen given the large number of call sites; but if it does, we could probably fix it by making init_degree_constants() non-static. I'll avoid that till proven necessary, though.
Diffstat (limited to 'contrib/postgres_fdw/postgres_fdw.c')
0 files changed, 0 insertions, 0 deletions