MCPcopy Create free account
hub / github.com/cinience/RedisStudio / Compare

Method Compare

include/rapidjson/internal/biginteger.h:207–216  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

205 }
206
207 int Compare(const BigInteger& rhs) const {
208 if (count_ != rhs.count_)
209 return count_ < rhs.count_ ? -1 : 1;
210
211 for (size_t i = count_; i-- > 0;)
212 if (digits_[i] != rhs.digits_[i])
213 return digits_[i] < rhs.digits_[i] ? -1 : 1;
214
215 return 0;
216 }
217
218 size_t GetCount() const { return count_; }
219 Type GetDigit(size_t index) const { RAPIDJSON_ASSERT(index < count_); return digits_[index]; }

Callers 1

CheckWithinHalfULPFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected