code: func (q *Quantity) CmpInt64(y int64) int {
  	if q.d.Dec != nil {
  		return q.d.Dec.Cmp(inf.NewDec(y, inf.Scale(0)))
  	}
  	return q.i.Cmp(int64Amount{value: y})
  }
docs: // CmpInt64 returns 0 if the quantity is equal to y, -1 if the quantity is less than y, or 1 if the
  // quantity is greater than y.