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

Method CompareTo

src/arith_uint256.cpp:112–121  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

110
111template <unsigned int BITS>
112int base_uint<BITS>::CompareTo(const base_uint<BITS>& b) const
113{
114 for (int i = WIDTH - 1; i >= 0; i--) {
115 if (pn[i] < b.pn[i])
116 return -1;
117 if (pn[i] > b.pn[i])
118 return 1;
119 }
120 return 0;
121}
122
123template <unsigned int BITS>
124bool base_uint<BITS>::EqualTo(uint64_t b) const

Callers 4

operator>Method · 0.80
operator<Method · 0.80
operator>=Method · 0.80
operator<=Method · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected