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

Function bitLength

Int.cpp:681–691  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

679// ------------------------------------------------
680
681static uint32_t bitLength(uint32_t dw) {
682
683 uint32_t mask = 0x80000000;
684 uint32_t b=0;
685 while(b<32 && (mask & dw)==0) {
686 b++;
687 mask >>= 1;
688 }
689 return b;
690
691}
692
693// ------------------------------------------------
694

Callers 2

GetBitLengthMethod · 0.85
DivMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected