Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/curiores/SerialAnalyzer
/ nextPowerOf2
Function
nextPowerOf2
src/Utils/DataUtils.js:31–33 ·
view source on GitHub ↗
(x)
Source
from the content-addressed store, hash-verified
29
}
30
31
export
function
nextPowerOf2(x){
32
return
Math.pow(2, Math.ceil(Math.log(x)/Math.log(2)));
33
}
34
35
export
function
autoResize(){
36
Callers
3
createSpectrum
Function · 0.90
autoResize
Function · 0.85
autoResizeSpectrum
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected