MCPcopy Index your code
hub / github.com/CovenantSQL/CovenantSQL / Inc

Method Inc

pow/cpuminer/uint256.go:48–57  ·  view source on GitHub ↗

Inc makes i = i + 1.

()

Source from the content-addressed store, hash-verified

46
47// Inc makes i = i + 1.
48func (i *Uint256) Inc() (ret *Uint256) {
49 if i.A++; i.A == 0 {
50 if i.B++; i.B == 0 {
51 if i.C++; i.C == 0 {
52 i.D++
53 }
54 }
55 }
56 return i
57}
58
59// Bytes converts Uint256 to []byte.
60func (i *Uint256) Bytes() []byte {

Callers 6

TestUint256_IncFunction · 0.95
createLocalNodesFunction · 0.95
createNodesWithPublicKeyFunction · 0.80
nonceGenFunction · 0.80
ComputeBlockNonceMethod · 0.80

Calls

no outgoing calls

Tested by 4

TestUint256_IncFunction · 0.76
createLocalNodesFunction · 0.76
createNodesWithPublicKeyFunction · 0.64