Source File
ieee754.go
Belonging Package
github.com/tetratelabs/wazero/internal/ieee754
package ieee754import ()// DecodeFloat32 decodes a float32 in IEEE 754 binary representation.// See https://www.w3.org/TR/2019/REC-wasm-core-1-20191205/#floating-point%E2%91%A2func ( []byte) (float32, error) {if len() < 4 {return 0, io.ErrUnexpectedEOF}:= binary.LittleEndian.Uint32([:4])return math.Float32frombits(), nil}// DecodeFloat64 decodes a float64 in IEEE 754 binary representation.// See https://www.w3.org/TR/2019/REC-wasm-core-1-20191205/#floating-point%E2%91%A2func ( []byte) (float64, error) {if len() < 8 {return 0, io.ErrUnexpectedEOF}:= binary.LittleEndian.Uint64()return math.Float64frombits(), nil}
![]() |
The pages are generated with Golds v0.8.2. (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. |