Modify additional power 2 calculations to use new helper functions

David Rowley <drowley@postgresql.org>

Commit: 02a2e8b442002a698336954633b0ccc4e30061e6
Author: David Rowley <drowley@postgresql.org>
Date: 2020-04-08T06:29:51Z
Releases: 13.0
Modify additional power 2 calculations to use new helper functions

2nd pass of modifying various places which obtain the next power
of 2 of a number and make them use the new functions added in
f0705bb62.

In passing, also modify num_combinations(). This can be implemented
using simple bitshifting rather than looping.

Reviewed-by: John Naylor
Discussion: https://postgr.es/m/20200114173553.GE32763%40fetter.org

Files

Discussion