aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/gist/gistvalidate.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2016-04-25 15:21:04 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2016-04-25 15:21:04 -0400
commit6b1a213bbd6599228b2b67f7552ff7cc378797bf (patch)
tree0b8488b74d229af99e23cc520bf9186c57498174 /src/backend/access/gist/gistvalidate.c
parent40e89e2ab89cb2801f6bc02f08dcc24d547530fc (diff)
downloadpostgresql-6b1a213bbd6599228b2b67f7552ff7cc378797bf.tar.gz
postgresql-6b1a213bbd6599228b2b67f7552ff7cc378797bf.zip
New method for preventing compile-time calculation of degree constants.
Commit 65abaab547a5758b tried to prevent the scaling constants used in the degree-based trig functions from being precomputed at compile time, because some compilers do that with functions that don't yield results identical-to-the-last-bit to what you get at runtime. A report from Peter Eisentraut suggests that some recent compilers are smart enough to see through that trick, though. Instead, let's put the inputs to these calculations into non-const global variables, which should be a more reliable way of convincing the compiler that it can't assume that they are compile-time constants. (If we really get desperate, we could mark these variables "volatile", but I do not believe we should have to.)
Diffstat (limited to 'src/backend/access/gist/gistvalidate.c')
0 files changed, 0 insertions, 0 deletions