Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/RobTillaart/Arduino
/ bitsNeededRef
Function
bitsNeededRef
libraries/bitHelpers/bitHelpers.cpp:610–619 ·
view source on GitHub ↗
reference
Source
from the content-addressed store, hash-verified
608
609
// reference
610
uint8_t bitsNeededRef(uint64_t x)
611
{
612
uint8_t n = 0;
613
while (x)
614
{
615
x >>= 1;
616
n++;
617
}
618
return n;
619
}
620
621
622
// workers
Callers
1
unittest
Function · 0.85
Calls
no outgoing calls
Tested by
1
unittest
Function · 0.68