math/big.Float.mant (field)
164 uses
math/big (current package)
float.go#L71: mant nat
float.go#L219: return uint(len(x.mant))*_W - x.mant.trailingZeroBits()
float.go#L370: m := len(x.mant)
float.go#L375: if x.mant[m-1]&msb == 0 {
float.go#L376: panic(fmt.Sprintf("msb not set in last word %#x of %s", x.mant[m-1], x.Text('p', 0)))
float.go#L404: m := uint32(len(z.mant)) // present mantissa length in words
float.go#L426: rbit := z.mant.bit(r) & 1 // rounding bit; be safe and ensure it's a single bit
float.go#L430: sbit = z.mant.sticky(r)
float.go#L437: copy(z.mant, z.mant[m-n:]) // move n last words to front
float.go#L438: z.mant = z.mant[:n]
float.go#L457: inc = rbit != 0 && (sbit != 0 || z.mant[0]&lsb != 0)
float.go#L475: if addVW(z.mant, z.mant, lsb) != 0 {
float.go#L484: shrVU(z.mant, z.mant, 1)
float.go#L487: z.mant[n-1] |= msb
float.go#L493: z.mant[0] &^= lsb - 1
float.go#L513: z.mant = z.mant.setUint64(x << uint(s))
float.go#L564: z.mant = z.mant.setUint64(1<<63 | math.Float64bits(fmant)<<11)
float.go#L607: z.mant = z.mant.set(x.abs)
float.go#L608: fnorm(z.mant)
float.go#L656: z.mant = z.mant.set(x.mant)
float.go#L681: z.mant = z.mant.set(x.mant)
float.go#L751: u := msb64(x.mant) >> (64 - uint32(x.exp))
float.go#L796: i := int64(msb64(x.mant) >> (64 - uint32(x.exp)))
float.go#L870: if p < 0 /* m <= 0.25 */ || p == 0 && x.mant.sticky(uint(len(x.mant))*_W-1) == 0 /* m == 0.5 */ {
float.go#L922: mant = msb32(r.mant) >> uint(fbits-p)
float.go#L926: mant = msb32(r.mant) >> ebits & (1<float.go#L990: if p < 0 /* m <= 0.25 */ || p == 0 && x.mant.sticky(uint(len(x.mant))*_W-1) == 0 /* m == 0.5 */ {
float.go#L1042: mant = msb64(r.mant) >> uint(fbits-p)
float.go#L1046: mant = msb64(r.mant) >> ebits & (1<float.go#L1095: allBits := uint(len(x.mant)) * _W
float.go#L1107: z.abs = z.abs.shl(x.mant, exp-allBits)
float.go#L1109: z.abs = z.abs.set(x.mant)
float.go#L1111: z.abs = z.abs.shr(x.mant, allBits-exp)
float.go#L1142: allBits := int32(len(x.mant)) * _W
float.go#L1147: z.a.abs = z.a.abs.shl(x.mant, uint(x.exp-allBits))
float.go#L1151: z.a.abs = z.a.abs.set(x.mant)
float.go#L1155: z.a.abs = z.a.abs.set(x.mant)
float.go#L1193: if len(x.mant) == 0 {
float.go#L1196: if len(y.mant) == 0 {
float.go#L1221: ex := int64(x.exp) - int64(len(x.mant))*_W
float.go#L1222: ey := int64(y.exp) - int64(len(y.mant))*_W
float.go#L1224: al := alias(z.mant, x.mant) || alias(z.mant, y.mant)
float.go#L1231: t := nat(nil).shl(y.mant, uint(ey-ex))
float.go#L1232: z.mant = z.mant.add(x.mant, t)
float.go#L1234: z.mant = z.mant.shl(y.mant, uint(ey-ex))
float.go#L1235: z.mant = z.mant.add(x.mant, z.mant)
float.go#L1239: z.mant = z.mant.add(x.mant, y.mant)
float.go#L1242: t := nat(nil).shl(x.mant, uint(ex-ey))
float.go#L1243: z.mant = z.mant.add(t, y.mant)
float.go#L1245: z.mant = z.mant.shl(x.mant, uint(ex-ey))
float.go#L1246: z.mant = z.mant.add(z.mant, y.mant)
float.go#L1252: z.setExpAndRound(ex+int64(len(z.mant))*_W-fnorm(z.mant), 0)
float.go#L1268: ex := int64(x.exp) - int64(len(x.mant))*_W
float.go#L1269: ey := int64(y.exp) - int64(len(y.mant))*_W
float.go#L1271: al := alias(z.mant, x.mant) || alias(z.mant, y.mant)
float.go#L1276: t := nat(nil).shl(y.mant, uint(ey-ex))
float.go#L1277: z.mant = t.sub(x.mant, t)
float.go#L1279: z.mant = z.mant.shl(y.mant, uint(ey-ex))
float.go#L1280: z.mant = z.mant.sub(x.mant, z.mant)
float.go#L1284: z.mant = z.mant.sub(x.mant, y.mant)
float.go#L1287: t := nat(nil).shl(x.mant, uint(ex-ey))
float.go#L1288: z.mant = t.sub(t, y.mant)
float.go#L1290: z.mant = z.mant.shl(x.mant, uint(ex-ey))
float.go#L1291: z.mant = z.mant.sub(z.mant, y.mant)
float.go#L1297: if len(z.mant) == 0 {
float.go#L1305: z.setExpAndRound(ex+int64(len(z.mant))*_W-fnorm(z.mant), 0)
float.go#L1324: z.mant = z.mant.sqr(x.mant)
float.go#L1326: z.mant = z.mant.mul(x.mant, y.mant)
float.go#L1328: z.setExpAndRound(e-fnorm(z.mant), 0)
float.go#L1345: xadj := x.mant
float.go#L1346: if d := n - len(x.mant) + len(y.mant); d > 0 {
float.go#L1348: xadj = make(nat, len(x.mant)+d)
float.go#L1349: copy(xadj[d:], x.mant)
float.go#L1357: d := len(xadj) - len(y.mant)
float.go#L1361: z.mant, r = z.mant.div(nil, xadj, y.mant)
float.go#L1362: e := int64(x.exp) - int64(y.exp) - int64(d-len(z.mant))*_W
float.go#L1373: z.setExpAndRound(e-fnorm(z.mant), sbit)
float.go#L1393: i := len(x.mant)
float.go#L1394: j := len(y.mant)
float.go#L1399: xm = x.mant[i]
float.go#L1403: ym = y.mant[j]
floatconv.go#L50: z.mant, b, fcount, err = z.mant.scan(r, base, true)
floatconv.go#L64: if len(z.mant) == 0 {
floatconv.go#L85: exp2 := int64(len(z.mant))*_W - fnorm(z.mant)
floatmarsh.go#L36: if len(x.mant) < n {
floatmarsh.go#L37: n = len(x.mant)
floatmarsh.go#L54: x.mant[len(x.mant)-n:].bytes(buf[10:]) // cut off unused trailing words
floatmarsh.go#L87: z.mant = z.mant.setBytes(buf[10:])
ftoa.go#L96: d.init(x.mant, int(x.exp)-x.mant.bitLen())
ftoa.go#L186: mant := nat(nil).set(x.mant)
ftoa.go#L329: m := x.mant
ftoa.go#L330: switch w := uint32(len(x.mant)) * _W; {
ftoa.go#L380: m := x.mant
ftoa.go#L381: switch w := uint(len(x.mant)) * _W; {
ftoa.go#L431: m := x.mant
sqrt.go#L126: z.mant = z.mant.make(int(prec2/_W) * 2)
 |
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. |