I guess
https://dlang.org/phobos/std_math.html#.truncPow2 or https://dlang.org/phobos/std_math.html#.nextPow2could be reused, but I bet there's a more efficient way of checking this.
I guess
https://dlang.org/phobos/std_math.html#.truncPow2 or https://dlang.org/phobos/std_math.html#.nextPow2could be reused, but I bet there's a more efficient way of checking this.