// are many trailing 0's.
bits := uint32(x.BitLen())
if z.prec == 0 {
- z.prec = umax32(bits, 64)
+ z.prec = max(bits, 64)
}
z.acc = Exact
z.neg = x.neg
a.SetInt(x.Num())
b.SetInt(x.Denom())
if z.prec == 0 {
- z.prec = umax32(a.prec, b.prec)
+ z.prec = max(a.prec, b.prec)
}
return z.Quo(&a, &b)
}
}
if z.prec == 0 {
- z.prec = umax32(x.prec, y.prec)
+ z.prec = max(x.prec, y.prec)
}
if x.form == finite && y.form == finite {
}
if z.prec == 0 {
- z.prec = umax32(x.prec, y.prec)
+ z.prec = max(x.prec, y.prec)
}
if x.form == finite && y.form == finite {
}
if z.prec == 0 {
- z.prec = umax32(x.prec, y.prec)
+ z.prec = max(x.prec, y.prec)
}
z.neg = x.neg != y.neg
}
if z.prec == 0 {
- z.prec = umax32(x.prec, y.prec)
+ z.prec = max(x.prec, y.prec)
}
z.neg = x.neg != y.neg
}
return m
}
-
-func umax32(x, y uint32) uint32 {
- if x > y {
- return x
- }
- return y
-}