[Issue 6343] std.math.ceilPow2
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Wed Apr 27 11:32:54 PDT 2016
https://issues.dlang.org/show_bug.cgi?id=6343
Jack Stouffer <jack at jackstouffer.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |WONTFIX
--- Comment #7 from Jack Stouffer <jack at jackstouffer.com> ---
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.
--
More information about the Digitalmars-d-bugs
mailing list