Lines Matching refs:Abs
591 if len(x.abs) == 0 {
596 z.mant = z.mant.set(x.abs)
1096 z.abs = z.abs.shl(x.mant, exp-allBits)
1098 z.abs = z.abs.set(x.mant)
1100 z.abs = z.abs.shr(x.mant, allBits-exp)
1136 z.a.abs = z.a.abs.shl(x.mant, uint(x.exp-allBits))
1137 z.b.abs = z.b.abs[:0] // == 1 (see Rat)
1140 z.a.abs = z.a.abs.set(x.mant)
1141 z.b.abs = z.b.abs[:0] // == 1 (see Rat)
1144 z.a.abs = z.a.abs.set(x.mant)
1145 t := z.b.abs.setUint64(1)
1146 z.b.abs = t.shl(t, uint(allBits-x.exp))
1161 // Abs sets z to the (possibly rounded) value |x| (the absolute value of x)
1163 func (z *Float) Abs(x *Float) *Float {