diff options
author | Andres Freund <andres@anarazel.de> | 2018-03-28 12:45:32 -0700 |
---|---|---|
committer | Andres Freund <andres@anarazel.de> | 2018-03-28 13:12:15 -0700 |
commit | 8a934d6778331f2ac04a40f4f22178a56a232315 (patch) | |
tree | 25444959b242ffa5bf7c501b333844a52a371b80 /src/backend/tcop/postgres.c | |
parent | 266b6acb312fc440c1c1a2036aa9da94916beac6 (diff) | |
download | postgresql-8a934d6778331f2ac04a40f4f22178a56a232315.tar.gz postgresql-8a934d6778331f2ac04a40f4f22178a56a232315.zip |
Use isinf builtin for clang, for performance.
When compiling with clang glibc's definition of isinf() ends up
leading to and external libc function call. That's because there was a
bug in the builtin in an old gcc version, and clang claims
compatibility with an older version. That causes clang to be
measurably slower for floating point heavy workloads than gcc.
To fix simply redirect isinf when using clang and clang confirms it
has __builtin_isinf().
Diffstat (limited to 'src/backend/tcop/postgres.c')
0 files changed, 0 insertions, 0 deletions