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

Function round_up_pot

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

Source from the content-addressed store, hash-verified

47inline int round_down_pot(int value) { return 1 << floor_log2(value); }
48
49inline int round_up_pot(int value) { return 1 << ceil_log2(value); }
50
51inline int round_down_pot(int value, int modulo) {
52 RUY_DCHECK_EQ(modulo & (modulo - 1), 0);

Callers 4

FreeAllMethod · 0.85
AllocateBytesMethod · 0.85
MakeBlockMapFunction · 0.85
CreatePackedLayoutFunction · 0.85

Calls 2

ceil_log2Function · 0.85
round_down_potFunction · 0.85

Tested by

no test coverage detected