- Sort Score
- Result 10 results
- Languages All
Results 1 - 6 of 6 for Float64frombits (0.17 sec)
-
src/math/unsafe.go
// and Float64bits(Float64frombits(x)) == x. func Float64bits(f float64) uint64 { return *(*uint64)(unsafe.Pointer(&f)) } // 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.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 17:58:53 UTC 2024 - 1.6K bytes - Viewed (0) -
src/internal/fuzz/encoding_test.go
uint8(0b0000000) byte(0x0) byte('\000') byte('\u0000') byte('\'') math.Float64frombits(9221120237041090562) math.Float32frombits(2143289345)`, want: `go test fuzz v1 int(0) rune('A') int64(68719476735) uint32(3405705229) uint64(18446744073709551615) byte('\x00') byte('\x00') byte('\x00') byte('\x00') byte('\'') math.Float64frombits(0x7ff8000000000002) math.Float32frombits(0x7fc00001)`, }, {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 07 00:20:34 UTC 2024 - 8.2K bytes - Viewed (0) -
src/encoding/gob/decgen.go
}, { "complex128", "Complex128", `real := float64FromBits(state.decodeUint()) imag := float64FromBits(state.decodeUint()) slice[i] = complex(real, imag)`, }, { "float32", "Float32", `slice[i] = float32(float32FromBits(state.decodeUint(), ovfl))`, }, { "float64", "Float64", `slice[i] = float64FromBits(state.decodeUint())`, }, { "int", "Int",
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Mar 20 14:15:38 UTC 2024 - 5.3K bytes - Viewed (0) -
src/expvar/expvar.go
type Float struct { f atomic.Uint64 } func (v *Float) Value() float64 { return math.Float64frombits(v.f.Load()) } func (v *Float) String() string { return string(v.appendJSON(nil)) } func (v *Float) appendJSON(b []byte) []byte { return strconv.AppendFloat(b, math.Float64frombits(v.f.Load()), 'g', -1, 64) } // Add adds delta to v. func (v *Float) Add(delta float64) { for {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 26 21:32:11 UTC 2024 - 9.1K bytes - Viewed (0) -
test/codegen/math.go
// Like math.Copysign(c, -1), but with integer operations. Useful // for platforms that have a copysign opcode to see if it's detected. // s390x:"LNDFR\t",-"MOVD\t" (no integer load/store) sink64[2] = math.Float64frombits(math.Float64bits(a) | 1<<63) // amd64:"ANDQ","ORQ" // s390x:"CPSDR\t",-"MOVD\t" (no integer load/store) // ppc64x:"FCPSGN" // riscv64:"FSGNJD" sink64[3] = math.Copysign(-1, c) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 04 15:24:29 UTC 2024 - 6.2K bytes - Viewed (0) -
src/syscall/dll_windows.go
// "double", use uintptr(math.Float64bits(x)). Floating-point return // values are returned in r2. The return value for C type "float" is // [math.Float32frombits](uint32(r2)). For C type "double", it is // [math.Float64frombits](uint64(r2)). // //go:uintptrescapes func (p *Proc) Call(a ...uintptr) (uintptr, uintptr, error) { return SyscallN(p.Addr(), a...) } // A LazyDLL implements access to a single [DLL].
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Feb 26 21:03:59 UTC 2024 - 7.7K bytes - Viewed (0)