MCPcopy Create free account
hub / github.com/numpy/numpy / compute_min_run

Function compute_min_run

numpy/core/src/npysort/timsort.cpp:45–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43#define TIMSORT_STACK_SIZE 128
44
45static npy_intp
46compute_min_run(npy_intp num)
47{
48 npy_intp r = 0;
49
50 while (64 < num) {
51 r |= num & 1;
52 num >>= 1;
53 }
54
55 return num + r;
56}
57
58typedef struct {
59 npy_intp s; /* start pointer */

Callers 2

timsort_Function · 0.85
atimsort_Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected