- Sort Score
- Result 10 results
- Languages All
Results 1 - 8 of 8 for 0b0 (0.02 sec)
-
src/reflect/abi.go
case Bool, Int, Uint, Int8, Uint8, Int16, Uint16, Int32, Uint32, Uintptr: return a.assignIntN(offset, t.Size(), 1, 0b0) case Int64, Uint64: switch goarch.PtrSize { case 4: return a.assignIntN(offset, 4, 2, 0b0) case 8: return a.assignIntN(offset, 8, 1, 0b0) } case Float32, Float64: return a.assignFloatN(offset, t.Size(), 1) case Complex64: return a.assignFloatN(offset, 4, 2)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 07 17:08:32 UTC 2024 - 15K bytes - Viewed (0) -
src/math/big/floatconv_test.go
{"1p10", 1 << 10}, {"1p+10", 1 << 10}, {"+1p-10", 1.0 / (1 << 10)}, {"1024p-12", 0.25}, {"-1p10", -1024}, {"1.5p1", 3}, // binary mantissa, decimal exponent {"0b0", 0}, {"-0b0", -zero_}, {"0b0e+10", 0}, {"-0b0e-10", -zero_}, {"0b1010", 10}, {"0B1010E2", 1000}, {"0b.1", 0.5}, {"0b.001", 0.125}, {"0b.001e3", 125}, // binary mantissa, binary exponent
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Dec 13 18:45:54 UTC 2021 - 24.3K bytes - Viewed (0) -
src/math/big/natconv_test.go
{"012.345", 10, true, nat{12345}, 10, -3, nil, 0}, {"0.1", 0, true, nat{1}, 10, -1, nil, 0}, {"0.1", 2, true, nat{1}, 2, -1, nil, 0}, {"0.12", 2, true, nat{1}, 2, -1, nil, '2'}, {"0b0.1", 0, true, nat{1}, 2, -1, nil, 0}, {"0B0.12", 0, true, nat{1}, 2, -1, nil, '2'}, {"0o0.7", 0, true, nat{7}, 8, -1, nil, 0}, {"0O0.78", 0, true, nat{7}, 8, -1, nil, '8'}, {"0xdead.beef", 0, true, nat{0xdeadbeef}, 16, -4, nil, 0},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 12:54:00 UTC 2019 - 16.8K bytes - Viewed (0) -
src/go/constant/value_test.go
`0O01234567 = 01234567`, `0o_0 = 0`, `0o_1234 = 01234`, `0o0123_4567 = 01234567`, `0O_0 = 0`, `0O_1234 = 01234`, `0O0123_4567 = 01234567`, // binaries `0b0 = 0`, `0b1011 = 0xb`, `0b00101101 = 0x2d`, `0B0 = 0`, `0B1011 = 0xb`, `0B00101101 = 0x2d`, `0b_0 = 0`, `0b10_11 = 0xb`, `0b_0010_1101 = 0x2d`, }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Dec 13 18:45:54 UTC 2021 - 15.6K bytes - Viewed (0) -
src/cmd/compile/internal/syntax/scanner_test.go
} } } func TestNumbers(t *testing.T) { for _, test := range []struct { kind LitKind src, tokens, err string }{ // binaries {IntLit, "0b0", "0b0", ""}, {IntLit, "0b1010", "0b1010", ""}, {IntLit, "0B1110", "0B1110", ""}, {IntLit, "0b", "0b", "binary literal has no digits"}, {IntLit, "0b0190", "0b0190", "invalid digit '9' in binary literal"},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Sep 14 16:11:21 UTC 2022 - 21.9K bytes - Viewed (0) -
src/math/big/intconv_test.go
{"00", "0", 0, 0, true}, {"0", "0", 8, 0, true}, {"07", "7", 0, 7, true}, {"7", "7", 8, 7, true}, {"023", "19", 0, 19, true}, {"23", "23", 8, 19, true}, {"cafebabe", "cafebabe", 16, 0xcafebabe, true}, {"0b0", "0", 0, 0, true}, {"-111", "-111", 2, -7, true}, {"-0b111", "-7", 0, -7, true}, {"0b1001010111", "599", 0, 0x257, true}, {"1001010111", "1001010111", 2, 0x257, true}, {"A", "a", 36, 10, true},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 12 22:58:58 UTC 2019 - 10K bytes - Viewed (0) -
src/text/scanner/scanner_test.go
for r := s.Scan(); r != EOF; r = s.Scan() { } } func TestNumbers(t *testing.T) { for _, test := range []struct { tok rune src, tokens, err string }{ // binaries {Int, "0b0", "0b0", ""}, {Int, "0b1010", "0b1010", ""}, {Int, "0B1110", "0B1110", ""}, {Int, "0b", "0b", "binary literal has no digits"}, {Int, "0b0190", "0b0190", "invalid digit '9' in binary literal"},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 17 03:41:50 UTC 2022 - 25.3K bytes - Viewed (0) -
src/go/scanner/scanner_test.go
} } }) } } func TestNumbers(t *testing.T) { for _, test := range []struct { tok token.Token src, tokens, err string }{ // binaries {token.INT, "0b0", "0b0", ""}, {token.INT, "0b1010", "0b1010", ""}, {token.INT, "0B1110", "0B1110", ""}, {token.INT, "0b", "0b", "binary literal has no digits"}, {token.INT, "0b0190", "0b0190", "invalid digit '9' in binary literal"},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Aug 28 15:38:31 UTC 2023 - 34.6K bytes - Viewed (0)