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

Method BitCount

src/cryptlib/integer.cpp:1354–1361  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1352}
1353
1354unsigned int Integer::BitCount() const
1355{
1356 unsigned wordCount = WordCount();
1357 if (wordCount)
1358 return (wordCount-1)*WORD_BITS + BitPrecision(reg[wordCount-1]);
1359 else
1360 return 0;
1361}
1362
1363void Integer::Decode(const byte *input, unsigned int inputLen, Signedness s)
1364{

Callers 8

RandomizeMethod · 0.80
integer.cppFile · 0.80
LucasFunction · 0.80
ExponentBitLengthMethod · 0.80
RawDecryptMethod · 0.80
MaxElementBitLengthMethod · 0.80
IntMultiplyMethod · 0.80
CascadeIntMultiplyMethod · 0.80

Calls 1

BitPrecisionFunction · 0.85

Tested by

no test coverage detected