MCPcopy Create free account
hub / github.com/BTCGPU/BTCGPU / EqualTo

Method EqualTo

src/arith_uint256.cpp:124–135  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

122
123template <unsigned int BITS>
124bool base_uint<BITS>::EqualTo(uint64_t b) const
125{
126 for (int i = WIDTH - 1; i >= 2; i--) {
127 if (pn[i])
128 return false;
129 }
130 if (pn[1] != (b >> 32))
131 return false;
132 if (pn[0] != (b & 0xfffffffful))
133 return false;
134 return true;
135}
136
137template <unsigned int BITS>
138double base_uint<BITS>::getdouble() const

Callers 3

operator==Method · 0.80
operator!=Method · 0.80
MineBlockFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected