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

Method ShiftR

Int.cpp:533–544  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

531// ---------------------------------D---------------
532
533void Int::ShiftR(uint32_t n) {
534
535 if( n<64 ) {
536 shiftR((unsigned char)n, bits64);
537 } else {
538 uint32_t nb64 = n/64;
539 uint32_t nb = n%64;
540 for(uint32_t i=0;i<nb64;i++) ShiftR64Bit();
541 shiftR((unsigned char)nb, bits64);
542 }
543
544}
545
546// ------------------------------------------------
547

Callers 5

DivMethod · 0.80
GCDMethod · 0.80
IsProbablePrimeMethod · 0.80
HasSqrtMethod · 0.80
ModSqrtMethod · 0.80

Calls 1

shiftRFunction · 0.85

Tested by

no test coverage detected