MCPcopy Index your code
hub / github.com/SuperMap/iClient-JavaScript / minRunLength

Function minRunLength

libs/echarts/echarts.simple.js:5819–5828  ·  view source on GitHub ↗
(n)

Source from the content-addressed store, hash-verified

5817var DEFAULT_MIN_GALLOPING = 7;
5818
5819function minRunLength(n) {
5820 var r = 0;
5821
5822 while (n >= DEFAULT_MIN_MERGE) {
5823 r |= n & 1;
5824 n >>= 1;
5825 }
5826
5827 return n + r;
5828}
5829
5830function makeAscendingRun(array, lo, hi, compare) {
5831 var runHi = lo + 1;

Callers 1

sortFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected