summaryrefslogtreecommitdiff
path: root/src/tutorial
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2011-04-29 01:45:02 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2011-04-29 01:45:02 -0400
commitcb0bcf45cbe1092081331f3f759c3ab7580d0cb1 (patch)
tree3f8acf9cd6d331e033d7ab171ede15467bb42dc5 /src/tutorial
parentc02bc6356f26c6b4373fbac0118409b544ea85f0 (diff)
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/tutorial')
0 files changed, 0 insertions, 0 deletions