const math.shift
28 uses
math (current package)
bits.go#L13: shift = 64 - 11 - 1
bits.go#L16: fracMask = 1<<shift - 1
floor.go#L75: e := uint(bits>>shift) & mask
floor.go#L82: } else if e < bias+shift {
floor.go#L87: const half = 1 << (shift - 1)
floor.go#L113: e := uint(bits>>shift) & mask
floor.go#L119: const halfMinusULP = (1 << (shift - 1)) - 1
floor.go#L121: bits += (halfMinusULP + (bits>>(shift-e))&1) >> e
frexp.go#L28: exp += int((x>>shift)&mask) - bias + 1
frexp.go#L29: x &^= mask << shift
frexp.go#L30: x |= (-1 + bias) << shift
ldexp.go#L27: exp += int(x>>shift)&mask - bias
ldexp.go#L42: x &^= mask << shift
ldexp.go#L43: x |= uint64(exp+bias) << shift
logb.go#L49: return int((Float64bits(x)>>shift)&mask) - bias + exp
modf.go#L28: e := uint(x>>shift)&mask - bias
sqrt.go#L109: exp := int((ix >> shift) & mask)
sqrt.go#L111: for ix&(1<<shift) == 0 {
sqrt.go#L118: ix &^= mask << shift
sqrt.go#L119: ix |= 1 << shift
sqrt.go#L127: r := uint64(1 << (shift + 1)) // r = moving bit from MSB to LSB
sqrt.go#L142: ix = q>>1 + uint64(exp-1+bias)<<shift // significand + biased exponent
trig_reduce.go#L37: exp := int(ix>>shift&mask) - bias - shift
trig_reduce.go#L38: ix &^= mask << shift
trig_reduce.go#L39: ix |= 1 << shift
trig_reduce.go#L61: hi >>= 64 - shift
trig_reduce.go#L63: hi |= e << shift
![]() |
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. |