https://issues.dlang.org/show_bug.cgi?id=6343

Jack Stouffer <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |WONTFIX

--- Comment #7 from Jack Stouffer <[email protected]> ---
No need for a separate function now, you can just do

    nextPow2(w == 0 ? w : w - 1)

for your desired effect. If you still want the name, then you can do

    alias ceilPow2 = (w) => nextPow2(w == 0 ? w : w - 1);

in your code. I am going to mark this as won't fix because adding this function
would only take one line and therefore is of questionable value to add to
Phobos.

--

Reply via email to