MCPcopy Create free account
hub / github.com/albertobsd/keyhunt / GetBit

Method GetBit

secp256k1/Int.cpp:1058–1063  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1056
1057
1058int Int::GetBit(uint32_t n) {
1059 uint32_t byte = n>>5;
1060 uint32_t bit = n&31;
1061 uint32_t mask = 1 << bit;
1062 return (bits[byte] & mask)!=0;
1063}
1064
1065// ------------------------------------------------
1066char* Int::GetBase2() {

Callers 3

GCDMethod · 0.45
ScalarMultiplicationMethod · 0.45
ModExpMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected