public boolean testBit(int n) {
		if (n < 0 || n > bitLength - 1) {
			throw new IllegalArgumentException();
		}
		return (value & (1L << n)) != 0;
	}
<p>Returns true if and only if the designated bit is set to one.
Computes ((this &amp; (1&lt;&lt;n)) != 0).  Bits are numbered
0..bitlength()-1 with 0 being the least significant bit.</p>

@param n the bit to test.
@return true if and only if the designated bit is set to one.

@throws IndexOutOfBoundsException if n &gt;= bitLength().
Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/model/scalar/Scalar.java