diff options
author | Alvaro Herrera <alvherre@alvh.no-ip.org> | 2019-02-13 20:09:48 -0300 |
---|---|---|
committer | Alvaro Herrera <alvherre@alvh.no-ip.org> | 2019-02-13 20:09:48 -0300 |
commit | 109de05cbb034b032cd60f50708716c8ff0afdf2 (patch) | |
tree | d851e8295a7df4f306650cf763948a8149bacb78 /src/backend/utils/adt/like_support.c | |
parent | 80c468b4a454881b56e1c73c6fedcb2978c5b415 (diff) | |
download | postgresql-109de05cbb034b032cd60f50708716c8ff0afdf2.tar.gz postgresql-109de05cbb034b032cd60f50708716c8ff0afdf2.zip |
Fix portability issues in pg_bitutils
We were using uint64 function arguments as "long int" arguments to
compiler builtins, which fails on machines where long ints are 32 bits:
the upper half of the uint64 was being ignored. Fix by using the "ll"
builtin variants instead, which on those machines take 64 bit arguments.
Also, remove configure tests for __builtin_popcountl() (as well as
"long" variants for ctz and clz): the theory here is that any compiler
version will provide all widths or none, so one test suffices. Were
this theory to be wrong, we'd have to add tests for
__builtin_popcountll() and friends, which would be tedious.
Per failures in buildfarm member lapwing and ensuing discussion.
Diffstat (limited to 'src/backend/utils/adt/like_support.c')
0 files changed, 0 insertions, 0 deletions