- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 519 for ffloat32 (0.12 sec)
-
test/fixedbugs/issue27718.go
} } //go:noinline func add32(x float32) float32 { return x + 0 } func testAdd32() { var zero float32 inf := 1.0 / zero negZero := -1 / inf if 1/add32(negZero) != inf { panic("negZero+0 != posZero (32 bit)") } } //go:noinline func sub32(x float32) float32 { return x - 0 } func testSub32() { var zero float32 inf := 1.0 / zero negZero := -1 / inf
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Aug 28 02:29:42 UTC 2019 - 1.6K bytes - Viewed (0) -
src/math/rand/export_test.go
package rand func Int31nForTest(r *Rand, n int32) int32 { return r.int31n(n) } func GetNormalDistributionParameters() (float64, [128]uint32, [128]float32, [128]float32) { return rn, kn, wn, fn } func GetExponentialDistributionParameters() (float64, [256]uint32, [256]float32, [256]float32) { return re, ke, we, fe
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Apr 28 16:06:21 UTC 2021 - 482 bytes - Viewed (0) -
src/runtime/float_test.go
0x8234508000000001, // from issue48807 1<<56 + 1<<32 + 1, } { got := float32(i) dontwant := float32(float64(i)) if got == dontwant { // The test cases above should be uint64s such that // this equality doesn't hold. These examples trigger // the case where using an intermediate float64 doesn't work. t.Errorf("direct float32 conversion doesn't work: arg=%x got=%x dontwant=%x", i, got, dontwant) } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 07 18:34:24 UTC 2021 - 699 bytes - Viewed (0) -
test/literal.go
// float var f00 float32 = 3.14159 var f01 float32 = -3.14159 var f02 float32 = +3.14159 var f03 float32 = 0.0 var f04 float32 = .0 var f05 float32 = 0. var f06 float32 = -0.0 var f07 float32 = 1e10 var f08 float32 = -1e10 var f09 float32 = 1e-10 var f10 float32 = 1e+10 var f11 float32 = 1.e-10 var f12 float32 = 1.e+10 var f13 float32 = .1e-10 var f14 float32 = .1e+10
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Feb 12 18:17:49 UTC 2013 - 5K bytes - Viewed (0) -
test/fixedbugs/issue12577.go
package main import "math" const ( z0 = 0.0 z1 = -0.0 z2 = -z0 z3 = -z2 ) var ( x0 float32 = z0 x1 float32 = z1 x2 float32 = z2 x3 float32 = z3 y0 float64 = z0 y1 float64 = z1 y2 float64 = z2 y3 float64 = z3 ) func test32(f float32) { if f != 0 || math.Signbit(float64(f)) { println("BUG: got", f, "want 0.0") return } } func test64(f float64) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Oct 20 22:11:11 UTC 2015 - 1011 bytes - Viewed (0) -
src/internal/types/testdata/check/decls0.go
A3 /* ERROR "invalid recursive type" */ [10]struct { x A4 } A4 [10]A3 F1 func() F2 func(x, y, z float32) F3 func(x, y, x /* ERROR "redeclared" */ float32) F4 func() (x, y, x /* ERROR "redeclared" */ float32) F5 func(x int) (x /* ERROR "redeclared" */ float32) F6 func(x ...int) I1 interface{} I2 interface { m1() } I3 interface { m1()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 19:19:55 UTC 2024 - 4.1K bytes - Viewed (0) -
src/cmd/compile/internal/reflectdata/alg_test.go
func BenchmarkEqArrayOfFloats5(b *testing.B) { var a [5]float32 var c [5]float32 for i := 0; i < b.N; i++ { _ = a == c } } func BenchmarkEqArrayOfFloats64(b *testing.B) { var a [64]float32 var c [64]float32 for i := 0; i < b.N; i++ { _ = a == c } } func BenchmarkEqArrayOfFloats1024(b *testing.B) { var a [1024]float32 var c [1024]float32 for i := 0; i < b.N; i++ { _ = a == c }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 24 21:55:14 UTC 2023 - 2.1K bytes - Viewed (0) -
test/fixedbugs/issue28450.go
func g(a ...int, b ...int) {} // ERROR "non-final parameter a|must be last parameter|can only use ... with final parameter" func h(...int, ...int, float32) {} // ERROR "non-final parameter|must be last parameter|can only use ... with final parameter" type a func(...float32, ...interface{}) // ERROR "non-final parameter|must be last parameter|can only use ... with final parameter" type b interface {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Dec 22 17:50:13 UTC 2020 - 993 bytes - Viewed (0) -
src/reflect/float32reg_ppc64x.s
//go:build ppc64 || ppc64le #include "textflag.h" // On PPC64, the float32 becomes a float64 // when loaded in a register, different from // other platforms. These functions are // needed to ensure correct conversions on PPC64. // Convert float32->uint64 TEXT ·archFloat32ToReg(SB),NOSPLIT,$0-16 FMOVS val+0(FP), F1 FMOVD F1, ret+8(FP) RET // Convert uint64->float32 TEXT ·archFloat32FromReg(SB),NOSPLIT,$0-12 FMOVD reg+0(FP), F1
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat Nov 06 10:24:44 UTC 2021 - 838 bytes - Viewed (0) -
test/float_lit3.go
max64 = two1024 - ulp64 ) var x = []interface{}{ float32(max32 + ulp32/2 - 1), // ok float32(max32 + ulp32/2 - two128/two256), // ok float32(max32 + ulp32/2), // ERROR "constant 3\.40282e\+38 overflows float32|cannot convert.*to type float32" float32(-max32 - ulp32/2 + 1), // ok float32(-max32 - ulp32/2 + two128/two256), // ok
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Dec 03 16:24:32 UTC 2021 - 1.7K bytes - Viewed (0)