Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
38
inline int ceil_log2(int n) {
39
RUY_DCHECK_GE(n, 1);
40
return n == 1 ? 0 : floor_log2(n - 1) + 1;
41
}
42
43
inline bool is_pot(int value) {
44
return (value > 0) && ((value & (value - 1)) == 0);
Callers
3
round_up_pot
Function · 0.85
floor_log2_quotient
Function · 0.85
MakeBlockMap
Function · 0.85
Calls
1
floor_log2
Function · 0.85
Tested by
no test coverage detected