MCPcopy Create free account
hub / github.com/JeanLucPons/VanitySearch / GetBase2

Method GetBase2

Int.cpp:1127–1145  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1125// ------------------------------------------------
1126
1127std::string Int::GetBase2() {
1128
1129 char ret[1024];
1130 int k=0;
1131
1132 for(int i=0;i<NB32BLOCK-1;i++) {
1133 unsigned int mask=0x80000000;
1134 for(int j=0;j<32;j++) {
1135 if(bits[i]&mask) ret[k]='1';
1136 else ret[k]='0';
1137 k++;
1138 mask=mask>>1;
1139 }
1140 }
1141 ret[k]=0;
1142
1143 return std::string(ret);
1144
1145}
1146
1147bool Int::IsProbablePrime() {
1148

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected