| |
|
| java.lang.Object com.sun.media.jai.util.MathJAI
MathJAI | public class MathJAI (Code) | | A utility class to contain miscellaneous static methods.
|
Method Summary | |
final public static boolean | isPositivePowerOf2(int n) Determine whether the parameter is equal to a positive power of 2.
Parameters: n - The value to check. | final public static int | nextPositivePowerOf2(int n) Calculate the smallest positive power of 2 greater than or equal to
the provided parameter.
Parameters: n - The value for which the next power of 2 is to be found. |
isPositivePowerOf2 | final public static boolean isPositivePowerOf2(int n)(Code) | | Determine whether the parameter is equal to a positive power of 2.
Parameters: n - The value to check. Whether n is a positive power of 2. |
nextPositivePowerOf2 | final public static int nextPositivePowerOf2(int n)(Code) | | Calculate the smallest positive power of 2 greater than or equal to
the provided parameter.
Parameters: n - The value for which the next power of 2 is to be found. The smallest power of 2 >= n. |
|
|
|