| 110 | |
| 111 | template <unsigned int BITS> |
| 112 | int 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 | |
| 123 | template <unsigned int BITS> |
| 124 | bool base_uint<BITS>::EqualTo(uint64_t b) const |
no outgoing calls
no test coverage detected