- java.lang.Object
-
- org.spongepowered.math.HashFunctions
-
public final class HashFunctions extends Object
Provides various hash functions.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static int
fastCeil(float v)
In profiling, it has been found to be faster to have our own local implementation of "ceil" rather than to call toMath.ceil(double)
.
-
-
-
Method Detail
-
fastCeil
public static int fastCeil(float v)
In profiling, it has been found to be faster to have our own local implementation of "ceil" rather than to call toMath.ceil(double)
.- Parameters:
v
- the value to ceil- Returns:
- the ceil'd value
-
-