MCPcopy Create free account
hub / github.com/Derious/cuMPC / log2_pot

Function log2_pot

dependence/eigen-3.4.0/bench/benchmark-blocking-sizes.cpp:76–80  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

74};
75
76uint8_t log2_pot(size_t x) {
77 size_t l = 0;
78 while (x >>= 1) l++;
79 return l;
80}
81
82// Convert between size tripes and a compact form fitting in 12 bits
83// where each size, which must be a POT, is encoded as its log2, on 4 bits

Callers 1

compact_size_tripleFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected