diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2011-04-29 01:44:50 -0400 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2011-04-29 01:45:58 -0400 |
commit | fd2e2d09aa1d5ba198e09e6d936ff1bba7f62895 (patch) | |
tree | e1abc920b5c1b4d948c937de62aa502afdc7f400 /src/backend/regex/regexec.c | |
parent | c49e4ae1f886e74efb4bc94c09b993098232d5f9 (diff) | |
download | postgresql-fd2e2d09aa1d5ba198e09e6d936ff1bba7f62895.tar.gz postgresql-fd2e2d09aa1d5ba198e09e6d936ff1bba7f62895.zip |
Rewrite pg_size_pretty() to avoid compiler bug.
Convert it to use successive shifts right instead of increasing a divisor.
This is probably a tad more efficient than the original coding, and it's
nicer-looking than the previous patch because we don't need a special case
to avoid overflow in the last branch. But the real reason to do it is to
avoid a Solaris compiler bug, as per results from buildfarm member moa.
Diffstat (limited to 'src/backend/regex/regexec.c')
0 files changed, 0 insertions, 0 deletions