- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for f64toint32 (0.17 sec)
-
src/runtime/softfloat64.go
return fintto64(x) } func f32toint32(x uint32) int32 { val, _ := f64toint(f32to64(x)) return int32(val) } func f32toint64(x uint32) int64 { val, _ := f64toint(f32to64(x)) return val } func f64toint32(x uint64) int32 { val, _ := f64toint(x) return int32(val) } func f64toint64(x uint64) int64 { val, _ := f64toint(x) return val }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Oct 08 17:58:41 UTC 2021 - 11.5K bytes - Viewed (0) -
src/runtime/softfloat64_test.go
} // float64 -hw-> int32 -hw-> float64 func hwint32(f float64) float64 { return float64(int32(f)) } // float64 -sw-> int64 -hw-> float64 func toint64sw(f float64) float64 { i, ok := F64toint(math.Float64bits(f)) if !ok { // There's no right answer for out of range. // Match the hardware to pass the test. i = int64(f) } return float64(i) } // float64 -hw-> int64 -sw-> float64
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Dec 13 18:45:54 UTC 2021 - 4K bytes - Viewed (0) -
src/cmd/compile/internal/ssagen/ssa.go
ssa.OpCvt32to64F: {typecheck.LookupRuntimeFunc("fint32to64"), types.TFLOAT64}, ssa.OpCvt64Fto32: {typecheck.LookupRuntimeFunc("f64toint32"), types.TINT32}, ssa.OpCvt64to64F: {typecheck.LookupRuntimeFunc("fint64to64"), types.TFLOAT64}, ssa.OpCvt64Fto64: {typecheck.LookupRuntimeFunc("f64toint64"), types.TINT64}, ssa.OpCvt64Uto64F: {typecheck.LookupRuntimeFunc("fuint64to64"), types.TFLOAT64},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jun 10 19:44:43 UTC 2024 - 284.9K bytes - Viewed (0) -
src/runtime/export_test.go
"unsafe" ) var Fadd64 = fadd64 var Fsub64 = fsub64 var Fmul64 = fmul64 var Fdiv64 = fdiv64 var F64to32 = f64to32 var F32to64 = f32to64 var Fcmp64 = fcmp64 var Fintto64 = fintto64 var F64toint = f64toint var Entersyscall = entersyscall var Exitsyscall = exitsyscall var LockedOSThread = lockedOSThread var Xadduintptr = atomic.Xadduintptr var ReadRandomFailed = &readRandomFailed var Fastlog2 = fastlog2
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 17:50:53 UTC 2024 - 46.1K bytes - Viewed (0) -
src/cmd/compile/internal/test/testdata/fp_test.go
func floatsToInts(t *testing.T, x float64, expected int64) { y := float32(x) expectInt64(t, "F64toI8", int64(F64toI8_ssa(x)), expected) expectInt64(t, "F64toI16", int64(F64toI16_ssa(x)), expected) expectInt64(t, "F64toI32", int64(F64toI32_ssa(x)), expected) expectInt64(t, "F64toI64", int64(F64toI64_ssa(x)), expected) expectInt64(t, "F32toI8", int64(F32toI8_ssa(y)), expected) expectInt64(t, "F32toI16", int64(F32toI16_ssa(y)), expected)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 05 17:54:15 UTC 2022 - 35K bytes - Viewed (0)