LargeInteger
BigInteger
は の と同等のand
機能を持っていないようです。
and(BigInteger val)
「 」以来、私はこの素晴らしい答えを再現Returns a BigInteger whose value is (this & val). (This method returns a negative BigInteger if and only if this and val are both negative.)
しようとしましたtestBit
static LargeInteger and(LargeInteger i, LargeInteger j) {
return i & j;
}
しかし、コンパイラは報告します
error: bad operand types for binary operator '&'
return i & j;
^
上で使用するためにどのように再現できBigInteger
ますか?and
LargeInteger