secp256k1CtzVar static method
Implementation
static int secp256k1CtzVar(BigInt x) {
if (x == BigInt.zero) {
throw CryptoException.failed("secp256k1CtzVar", reason: "X must be zero");
}
int count = 0;
while ((x & BigInt.one) == BigInt.zero) {
x >>= 1;
count++;
}
return count;
}