Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
51
static 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
61
ErasureCodeClay::~ErasureCodeClay()
62
{
Callers
6
parse
Method · 0.85
get_repair_subchunks
Method · 0.85
repair_one_lost_chunk
Method · 0.85
recover_type1_erasure
Method · 0.85
get_coupled_from_uncoupled
Method · 0.85
get_uncoupled_from_coupled
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected