public final class MathUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
static int |
findNextPositivePowerOfTwo(int value)
Fast method of finding the next power of 2 greater than or equal to the supplied value.
|
public static int findNextPositivePowerOfTwo(int value)
<= 0 then 1 will be returned.
This method is not suitable for Integer.MIN_VALUE or numbers greater than 2^30.*value - from which to search for next power of 2Copyright © 2008–2015 The Netty Project. All rights reserved.