- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 19 for negZero (0.14 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) -
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/runtime/map_test.go
for i := 0; i < 100; i++ { m[FloatInt{3.0, i}] = 0 } // then change all the entries // to negative zero m[FloatInt{negzero, 0}] = 1 | 16 m[FloatInt{negzero, 1}] = 2 | 16 m[FloatInt{negzero, 2}] = 4 | 16 m[FloatInt{negzero, 3}] = 8 | 16 growflag = false } } if s != 15 { t.Error("entry missing", s) } if cnt != 4 {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 33.5K bytes - Viewed (0) -
src/cmd/internal/obj/mips/asm0.go
{AMOVW, C_REG, C_NONE, C_SOREG, 7, 4, REGZERO, 0, 0}, {AMOVWU, C_REG, C_NONE, C_SOREG, 7, 4, REGZERO, sys.MIPS64, 0}, {AMOVV, C_REG, C_NONE, C_SOREG, 7, 4, REGZERO, sys.MIPS64, 0}, {AMOVB, C_REG, C_NONE, C_SOREG, 7, 4, REGZERO, 0, 0}, {AMOVBU, C_REG, C_NONE, C_SOREG, 7, 4, REGZERO, 0, 0}, {AMOVWL, C_REG, C_NONE, C_SOREG, 7, 4, REGZERO, 0, 0}, {AMOVVL, C_REG, C_NONE, C_SOREG, 7, 4, REGZERO, sys.MIPS64, 0},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 16 17:46:09 UTC 2024 - 53.6K bytes - Viewed (0) -
src/cmd/internal/obj/loong64/asm.go
{AMOVW, C_REG, C_NONE, C_NONE, C_SOREG, C_NONE, 7, 4, REGZERO, 0}, {AMOVWU, C_REG, C_NONE, C_NONE, C_SOREG, C_NONE, 7, 4, REGZERO, 0}, {AMOVV, C_REG, C_NONE, C_NONE, C_SOREG, C_NONE, 7, 4, REGZERO, 0}, {AMOVB, C_REG, C_NONE, C_NONE, C_SOREG, C_NONE, 7, 4, REGZERO, 0}, {AMOVBU, C_REG, C_NONE, C_NONE, C_SOREG, C_NONE, 7, 4, REGZERO, 0}, {AMOVWL, C_REG, C_NONE, C_NONE, C_SOREG, C_NONE, 7, 4, REGZERO, 0},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 02:04:54 UTC 2024 - 61.8K 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/arm64/asm7.go
// or $bitcon, REGZERO, rt. rt can't be ZR. mode := 64 var as1 obj.As switch as { case AMOVW: as1 = AORRW mode = 32 case AMOVD: as1 = AORR } o1 = c.opirr(p, as1) o1 |= bitconEncode(uint64(a.Offset), mode) | uint32(REGZERO&31)<<5 | uint32(rt&31) return o1 } if as == AMOVW {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 15 15:44:14 UTC 2024 - 201.1K bytes - Viewed (0) -
src/cmd/internal/obj/arm64/obj7.go
"cmd/internal/src" "cmd/internal/sys" "internal/abi" "internal/buildcfg" "log" "math" ) // zrReplace is the set of instructions for which $0 in the From operand // should be replaced with REGZERO. var zrReplace = map[obj.As]bool{ AMOVD: true, AMOVW: true, AMOVWU: true, AMOVH: true, AMOVHU: true, AMOVB: true, AMOVBU: true, ASBC: true, ASBCW: true, ASBCS: true,
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Nov 08 05:46:32 UTC 2023 - 28.4K bytes - Viewed (0)