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

Method Power2

src/cryptlib/integer.cpp:1187–1192  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1185}
1186
1187Integer Integer::Power2(unsigned int e)
1188{
1189 Integer r((word)0, bitsToWords(e+1));
1190 r.SetBit(e);
1191 return r;
1192}
1193
1194const Integer &Integer::Zero()
1195{

Callers

nothing calls this directly

Calls 2

bitsToWordsFunction · 0.85
SetBitMethod · 0.80

Tested by

no test coverage detected