[vtk-developers] Power-of-two
David Lonie
david.lonie at kitware.com
Fri Mar 8 14:46:05 EST 2013
On Fri, Mar 8, 2013 at 2:37 PM, David Thompson
<david.thompson at kitware.com>wrote:
> Hi David,
>
> > Do you have ideas for what it should be called? It isn't quite
> > log2(x), because, unlike most integer math operations, it rounds up
> > instead of truncating.
>
> These are the alternatives I can think of, in order of descending personal
> preference:
>
> + CeilLog2
> + NextPowerOfTwo
These two are the clearest names to me. The others aren't exactly clear
what the function does.
Dave
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtk-developers/attachments/20130308/173da361/attachment.html>
More information about the vtk-developers
mailing list