- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 24 for negZero (0.18 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/cmd/compile/internal/test/float_test.go
} if sNegInf != sNegInf { t.Errorf("sNegInf != sNegInf returned true") } sNegZero := float32(math.Copysign(0, -1)) if sNegZero != 0 { t.Errorf("sNegZero != 0 returned true") } if sNegZero < 0 { t.Errorf("sNegZero < 0 returned true") } if 0 > sNegZero { t.Errorf("0 > sNegZero returned true") } } //go:noinline func cvt1(a float64) uint64 { return uint64(a) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 05 17:54:15 UTC 2022 - 12.5K 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/math/pow_s390x.s
#include "textflag.h" #define PosInf 0x7FF0000000000000 #define NaN 0x7FF8000000000001 #define NegInf 0xFFF0000000000000 #define PosOne 0x3FF0000000000000 #define NegOne 0xBFF0000000000000 #define NegZero 0x8000000000000000 // Minimax polynomial approximation DATA ·powrodataL51<> + 0(SB)/8, $-1.0 DATA ·powrodataL51<> + 8(SB)/8, $1.0 DATA ·powrodataL51<> + 16(SB)/8, $0.24022650695910110361E+00
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jun 14 00:03:57 UTC 2023 - 16.3K 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)