MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / ceil_log2

Function ceil_log2

tensorflow/lite/experimental/ruy/size_util.h:38–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36}
37
38inline int ceil_log2(int n) {
39 RUY_DCHECK_GE(n, 1);
40 return n == 1 ? 0 : floor_log2(n - 1) + 1;
41}
42
43inline bool is_pot(int value) {
44 return (value > 0) && ((value & (value - 1)) == 0);

Callers 3

round_up_potFunction · 0.85
floor_log2_quotientFunction · 0.85
MakeBlockMapFunction · 0.85

Calls 1

floor_log2Function · 0.85

Tested by

no test coverage detected