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

Function floor_log2_quotient

tensorflow/lite/experimental/ruy/block_map.cc:78–87  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

76namespace {
77
78int floor_log2_quotient(int num, int denom) {
79 if (num <= denom) {
80 return 0;
81 }
82 int log2_quotient = floor_log2(num) - ceil_log2(denom);
83 if ((denom << (log2_quotient + 1)) <= num) {
84 log2_quotient++;
85 }
86 return log2_quotient;
87}
88
89} // namespace
90

Callers 1

MakeBlockMapFunction · 0.85

Calls 2

floor_log2Function · 0.85
ceil_log2Function · 0.85

Tested by

no test coverage detected