On 10/6/12 4:48 PM, ref2401 wrote:
is there any Phobos function to calculate the next power of 2 of the
specified number?

Use 1U << bsr(x).

http://dlang.org/phobos/core_bitop.html#bsr


Andrei

Reply via email to