MCPcopy Create free account
hub / github.com/FlashSampling/FlashSampling / _log2

Function _log2

src/fused_mm_sampling/tl_argsort.py:94–100  ·  view source on GitHub ↗
(i)

Source from the content-addressed store, hash-verified

92
93@constexpr_function
94def _log2(i):
95 log2 = 0
96 n = i
97 while n > 1:
98 n >>= 1
99 log2 += 1
100 return log2
101
102
103_get_int_dtype = constexpr_function(core.get_int_dtype)

Callers 1

argsortFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected