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

Function compute_min_run_short

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

Source from the content-addressed store, hash-verified

952 */
953
954static npy_intp
955compute_min_run_short(npy_intp num)
956{
957 npy_intp r = 0;
958
959 while (16 < num) {
960 r |= num & 1;
961 num >>= 1;
962 }
963
964 return num + r;
965}
966
967/*
968 *****************************************************************************

Callers 4

string_timsort_Function · 0.85
string_atimsort_Function · 0.85
npy_timsortFunction · 0.85
npy_atimsortFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected