func math.Float32bits
16 uses
math (current package)
nextafter.go#L23: r = Float32frombits(Float32bits(x) + 1)
nextafter.go#L25: r = Float32frombits(Float32bits(x) - 1)
unsafe.go#L12: func Float32bits(f float32) uint32 { return *(*uint32)(unsafe.Pointer(&f)) }
encoding/binary
binary.go#L430: order.PutUint32(bs, math.Float32bits(*v))
binary.go#L432: order.PutUint32(bs, math.Float32bits(v))
binary.go#L435: order.PutUint32(bs[4*i:], math.Float32bits(x))
binary.go#L739: e.uint32(math.Float32bits(float32(v.Float())))
binary.go#L748: e.uint32(math.Float32bits(float32(real(x))))
binary.go#L749: e.uint32(math.Float32bits(float32(imag(x))))
github.com/klauspost/compress/flate
token.go#L213: ux := int32(math.Float32bits(val))
go.uber.org/atomic
float32.go#L55: x.v.Store(math.Float32bits(val))
float32.go#L61: return math.Float32frombits(x.v.Swap(math.Float32bits(val)))
float32_ext.go#L69: return f.v.CompareAndSwap(math.Float32bits(old), math.Float32bits(new))
go.uber.org/zap
field.go#L139: return Field{Key: key, Type: zapcore.Float32Type, Integer: int64(math.Float32bits(val))}
strconv
ftoa.go#L62: bits = uint64(math.Float32bits(float32(val)))
The pages are generated with Golds v0.6.7. (GOOS=linux 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. |