public static boolean isMultiplicationSave(final int a, final int b) {
		final long m = (long)a*(long)b;
		return (int)m == m;
	}
Binary exponentiation algorithm.

@param b the base number.
@param e the exponent.
@return {@code b^e}.
jenetics/src/main/java/io/jenetics/internal/math/Basics.java