class OpBehaviorIntLessEqual extends BinaryOpBehavior {

	@Override
	public long evaluateBinary(int sizeout, int sizein, long in1, long in2) {
		long res, mask, bit1, bit2;
		if (sizein <= 0) {
			res = 0;
		}
		else {
			mask = Utils.calc_mask(sizein);
			in1 &= mask;
			in2 &= mask;
			if (in1 == in2) {
				res = 1;
			}
			else if (sizein < 8) {
				res = (in1 < in2) ? 1 : 0;
			}
			else {
				mask = 0x80;
				mask <<= 8 * (sizein - 1);
				bit1 = in1 & mask; // Get the sign bits
				bit2 = in2 & mask;
				if (bit1 != bit2)
					res = (bit1 != 0) ? 0 : 1;
				else
					res = (in1 < in2) ? 1 : 0;
			}
		}
		return res;
	}

	public  OpBehaviorIntLessEqual();

}