- Sort Score
- Result 10 results
- Languages All
Results 1 - 9 of 9 for negZero (0.1 sec)
-
src/cmp/cmp_test.go
{math.NaN(), math.NaN(), 0}, {0.0, math.NaN(), +1}, {math.NaN(), 0.0, -1}, {math.NaN(), math.Inf(-1), -1}, {math.Inf(-1), math.NaN(), +1}, {0.0, 0.0, 0}, {negzero, negzero, 0}, {negzero, 0.0, 0}, {0.0, negzero, 0}, {negzero, 1.0, -1}, {negzero, -1.0, +1}, {nilptr, nonnilptr, -1}, {nonnilptr, nilptr, 1}, {nonnilptr, nonnilptr, 0}, } func TestLess(t *testing.T) { for _, test := range tests {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 04 23:39:07 UTC 2024 - 3.9K bytes - Viewed (0) -
test/fixedbugs/issue27718.go
func testAdd64() { var zero float64 inf := 1.0 / zero negZero := -1 / inf if 1/add64(negZero) != inf { panic("negZero+0 != posZero (64 bit)") } } //go:noinline func sub64(x float64) float64 { return x - 0 } func testSub64() { var zero float64 inf := 1.0 / zero negZero := -1 / inf if 1/sub64(negZero) != -inf { panic("negZero-0 != negZero (64 bit)") } } //go:noinline
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/atan2_s390x.s
MOVD $0, R4 CMPBLE R4, R2, returnX //special case Atan2(-0, y<=-0) = -Pi MOVD $NegZero, R4 CMPBGE R4, R2, returnNegPi BR Normal xIsPosZero: //special case Atan2(0, 0) = 0 MOVD $0, R4 CMPUBEQ R4, R2, returnX //special case Atan2(0, y<=-0) = Pi MOVD $NegZero, R4 CMPBGE R4, R2, returnPi BR Normal yIsNegInf: //special case Atan2(+Inf, -Inf) = 3Pi/4
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Mar 25 04:06:34 UTC 2020 - 6.9K bytes - Viewed (0) -
src/runtime/minmax_test.go
) var ( zero = math.Copysign(0, +1) negZero = math.Copysign(0, -1) inf = math.Inf(+1) negInf = math.Inf(-1) nan = math.NaN() ) var tests = []struct{ min, max float64 }{ {1, 2}, {-2, 1}, {negZero, zero}, {zero, inf}, {negInf, zero}, {negInf, inf}, {1, inf}, {negInf, 1}, } var all = []float64{1, 2, -1, -2, zero, negZero, inf, negInf, nan} func eq(x, y float64) bool {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Jan 26 01:41:50 UTC 2024 - 3.6K bytes - Viewed (0) -
src/maps/maps_test.go
} } } func TestCloneLarge(t *testing.T) { // See issue 64474. type K [17]float64 // > 128 bytes type V [17]float64 var zero float64 negZero := -zero for tst := 0; tst < 3; tst++ { // Initialize m with a key and value. m := map[K]V{} var k1 K var v1 V m[k1] = v1 switch tst { case 0: // nothing, just a 1-entry map
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Dec 05 17:05:56 UTC 2023 - 5.6K bytes - Viewed (0) -
src/cmd/compile/internal/ir/const.go
// NewUintptr returns an OLITERAL representing v as a uintptr. func NewUintptr(pos src.XPos, v int64) Node { return NewBasicLit(pos, types.Types[types.TUINTPTR], constant.MakeInt64(v)) } // NewZero returns a zero value of the given type. func NewZero(pos src.XPos, typ *types.Type) Node { switch { case typ.HasNil(): return NewNilExpr(pos, typ) case typ.IsInteger(): return NewBasicLit(pos, typ, intZero) case typ.IsFloat():
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Sep 12 18:53:26 UTC 2023 - 4K bytes - Viewed (0) -
src/cmd/internal/obj/loong64/a.out.go
REG_FCC24 REG_FCC25 REG_FCC26 REG_FCC27 REG_FCC28 REG_FCC29 REG_FCC30 REG_FCC31 REG_LAST = REG_FCC31 // the last defined register REG_SPECIAL = REG_FCSR0 REGZERO = REG_R0 // set to zero REGLINK = REG_R1 REGSP = REG_R3 REGRET = REG_R20 // not use REGARG = -1 // -1 disables passing the first argument in register
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 02:04:54 UTC 2024 - 5.7K bytes - Viewed (0) -
src/cmd/internal/obj/mips/a.out.go
REG_W24 REG_W25 REG_W26 REG_W27 REG_W28 REG_W29 REG_W30 REG_W31 REG_HI REG_LO REG_LAST = REG_LO // the last defined register REG_SPECIAL = REG_M0 REGZERO = REG_R0 /* set to zero */ REGSP = REG_R29 REGSB = REG_R28 REGLINK = REG_R31 REGRET = REG_R1 REGARG = -1 /* -1 disables passing the first argument in register */
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Aug 08 12:17:12 UTC 2023 - 7.6K bytes - Viewed (0) -
src/reflect/benchmark_test.go
for i := 0; i < b.N; i++ { value.SetZero() } }) b.Run(name+"/CachedZero", func(b *testing.B) { for i := 0; i < b.N; i++ { value.Set(zero) } }) b.Run(name+"/NewZero", func(b *testing.B) { for i := 0; i < b.N; i++ { value.Set(Zero(value.Type())) } }) } } func BenchmarkSelect(b *testing.B) { channel := make(chan int) close(channel)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sun Nov 19 17:09:03 UTC 2023 - 8.8K bytes - Viewed (0)