| java.lang.Object org.h2.util.MathUtils
MathUtils | public class MathUtils (Code) | | This is a utility class with mathematical helper functions.
|
checkPowerOf2 | public static void checkPowerOf2(int len)(Code) | | |
convertLongToInt | public static int convertLongToInt(long l)(Code) | | |
nextPowerOf2 | public static int nextPowerOf2(int x)(Code) | | |
roundUp | public static int roundUp(int x, int blockSizePowerOf2)(Code) | | |
roundUpLong | public static long roundUpLong(long x, long blockSizePowerOf2)(Code) | | |
scaleUp50Percent | public static long scaleUp50Percent(long start, long min, long blockSize, long maxIncrease)(Code) | | Increase the value by about 50%. The method is used to increase the file size
in larger steps.
Parameters: start - the smallest possible returned value Parameters: min - the current value Parameters: blockSize - the block size Parameters: maxIncrease - the maximum increment the new value |
|
|