MCPcopy Create free account
hub / github.com/Tripwire/tripwire-open-source / GetBit

Method GetBit

src/cryptlib/integer.cpp:1222–1228  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1220}
1221
1222bool Integer::GetBit(unsigned int n) const
1223{
1224 if (n/WORD_BITS >= reg.size)
1225 return 0;
1226 else
1227 return bool((reg[n/WORD_BITS] >> (n % WORD_BITS)) & 1);
1228}
1229
1230void Integer::SetBit(unsigned int n, bool value)
1231{

Callers 7

IsStrongProbablePrimeFunction · 0.45
NextPrimeFunction · 0.45
JacobiFunction · 0.45
LucasFunction · 0.45
IntMultiplyMethod · 0.45
CascadeIntMultiplyMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected