public static void main(String[] args) {
		long d = 4;
		for (long i = 27; i > -27; --i) {
			long result = unsignedDivide(i, d);
			long mod = unsignedModulo(i, d);
			long v = (result * d) + mod;
			System.out.println("0x" + Long.toHexString(i) + " -> 0x" + Long.toHexString(result) +
				":0x" + Long.toHexString(mod) + " -> 0x" + Long.toHexString(v));
		}
	}
Ensures that the given value is within the given range.

@param value the value to check
@param min the minimum value allowed
@param max the maximum value allowed
@return the clamped value
Ghidra/Framework/Generic/src/main/java/ghidra/util/MathUtilities.java