MCPcopy Create free account
hub / github.com/ceph/ceph / pow_int

Function pow_int

src/erasure-code/clay/ErasureCodeClay.cc:51–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49}
50
51static int pow_int(int a, int x) {
52 int power = 1;
53 while (x) {
54 if (x & 1) power *= a;
55 x /= 2;
56 a *= a;
57 }
58 return power;
59}
60
61ErasureCodeClay::~ErasureCodeClay()
62{

Callers 6

parseMethod · 0.85
get_repair_subchunksMethod · 0.85
repair_one_lost_chunkMethod · 0.85
recover_type1_erasureMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected