m19737.nim 249 B

1234567891011
  1. type
  2. UInt128* = object
  3. lo, hi: uint64
  4. func `<`*(x, y: UInt128): bool =
  5. (x.hi < y.hi) or ((x.hi == y.hi) and (x.lo < y.lo))
  6. when not defined(works):
  7. func `>`*(x, y: UInt128): bool =
  8. (x.hi > y.hi) or ((x.hi == y.hi) and (x.lo > y.lo))