Source File
unsafe.go
Belonging Package
math
// Copyright 2009 The Go Authors. All rights reserved.// Use of this source code is governed by a BSD-style// license that can be found in the LICENSE file.package mathimport// Despite being an exported symbol,// Float32bits is linknamed by widely used packages.// Notable members of the hall of shame include:// - gitee.com/quant1x/num//// Do not remove or change the type signature.// See go.dev/issue/67401.//// Note that this comment is not part of the doc comment.////go:linkname Float32bits// Float32bits returns the IEEE 754 binary representation of f,// with the sign bit of f and the result in the same bit position.// Float32bits(Float32frombits(x)) == x.func ( float32) uint32 { return *(*uint32)(unsafe.Pointer(&)) }// Float32frombits returns the floating-point number corresponding// to the IEEE 754 binary representation b, with the sign bit of b// and the result in the same bit position.// Float32frombits(Float32bits(x)) == x.func ( uint32) float32 { return *(*float32)(unsafe.Pointer(&)) }// Float64bits returns the IEEE 754 binary representation of f,// with the sign bit of f and the result in the same bit position,// and Float64bits(Float64frombits(x)) == x.func ( float64) uint64 { return *(*uint64)(unsafe.Pointer(&)) }// Float64frombits returns the floating-point number corresponding// to the IEEE 754 binary representation b, with the sign bit of b// and the result in the same bit position.// Float64frombits(Float64bits(x)) == x.func ( uint64) float64 { return *(*float64)(unsafe.Pointer(&)) }
![]() |
The pages are generated with Golds v0.7.9-preview. (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 @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |