MCPcopy 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
31export function nextPowerOf2(x){
32 return Math.pow(2, Math.ceil(Math.log(x)/Math.log(2)));
33}
34
35export function autoResize(){
36

Callers 3

createSpectrumFunction · 0.90
autoResizeFunction · 0.85
autoResizeSpectrumFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected