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

Function Log2Ceiling

tensorflow/core/lib/core/bits.h:79–85  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

77#endif
78
79inline int Log2Ceiling(uint32 n) {
80 int floor = Log2Floor(n);
81 if (n == (n & ~(n - 1))) // zero or a power of two
82 return floor;
83 else
84 return floor + 1;
85}
86
87inline int Log2Ceiling64(uint64 n) {
88 int floor = Log2Floor64(n);

Callers 7

NextPowerOfTwoFunction · 0.70
NextPowerOfTwo64Function · 0.70
CompileMethod · 0.50
CompileMethod · 0.50
HandleSortMethod · 0.50
HandleSortMethod · 0.50

Calls 1

Log2FloorFunction · 0.70

Tested by

no test coverage detected