math/big.nat.cmp (method)
31 uses
math/big (current package)
int.go#L125: if x.abs.cmp(y.abs) >= 0 {
int.go#L146: if x.abs.cmp(y.abs) >= 0 {
int.go#L329: r = x.abs.cmp(y.abs)
int.go#L348: return x.abs.cmp(y.abs)
int.go#L692: if A.abs.cmp(B.abs) < 0 {
nat.go#L153: func (x nat) cmp(y nat) (r int) {
nat.go#L659: if u.cmp(v) < 0 {
nat.go#L908: e := qhatv.cmp(uu.norm())
nat.go#L919: if qhatv.cmp(uu.norm()) > 0 {
nat.go#L942: if e := qhatv.cmp(u.norm()); e > 0 {
nat.go#L951: if qhatv.cmp(u.norm()) > 0 {
nat.go#L1214: if z.cmp(limit) < 0 {
nat.go#L1260: if x.cmp(natOne) > 0 && len(y) > 1 && len(m) > 0 {
nat.go#L1462: if zz.cmp(m) >= 0 {
nat.go#L1471: if zz.cmp(m) >= 0 {
nat.go#L1539: if x.cmp(natOne) <= 0 {
nat.go#L1559: if z2.cmp(z1) >= 0 {
natconv.go#L383: if table[index].nbits >= maxLength && table[index].bbb.cmp(q) >= 0 {
prime.go#L107: if y.cmp(natOne) == 0 || y.cmp(nm1) == 0 {
prime.go#L113: if y.cmp(nm1) == 0 {
prime.go#L116: if y.cmp(natOne) == 0 {
prime.go#L152: if len(n) == 0 || n.cmp(natOne) == 0 {
prime.go#L158: return n.cmp(natTwo) == 0
prime.go#L198: if t1.cmp(n) == 0 {
prime.go#L280: if vk.cmp(natTwo) == 0 || vk.cmp(nm2) == 0 {
prime.go#L290: if t1.cmp(t2) < 0 {
rat.go#L402: return len(x.b.abs) == 0 || x.b.abs.cmp(natOne) == 0
ratconv.go#L351: if x.b.abs.cmp(r2) <= 0 {
ratconv.go#L353: if r.cmp(p) >= 0 {
![]() |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |