- Sort Score
- Result 10 results
- Languages All
Results 151 - 160 of 173 for iota (0.15 sec)
-
src/internal/concurrent/hashtriemap_test.go
gmp := runtime.GOMAXPROCS(-1) var wg sync.WaitGroup for i := range gmp { wg.Add(1) go func(id int) { defer wg.Done() makeKey := func(s string) string { return s + "-" + strconv.Itoa(id) } for _, s := range testData { key := makeKey(s) expectMissing(t, key, 0)(m.Load(key)) expectStored(t, key, id)(m.LoadOrStore(key, id)) expectPresent(t, key, id)(m.Load(key))
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 16:01:55 UTC 2024 - 9.3K bytes - Viewed (0) -
src/go/types/typestring.go
w.byte(')') } case *Named: // If hashing, write a unique prefix for t to represent its identity, since // named type identity is pointer identity. if w.ctxt != nil { w.string(strconv.Itoa(w.ctxt.getID(t))) } w.typeName(t.obj) // when hashing written for readability of the hash only if t.inst != nil { // instantiated type w.typeList(t.inst.targs.list())
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 03:01:18 UTC 2024 - 12.3K bytes - Viewed (0) -
src/runtime/export_test.go
// These are all interruptible, they just encode a nonstandard // way of recovering when interrupted. return false default: var buf [20]byte panic("invalid unsafe point code " + string(itoa(buf[:], uint64(v)))) } } type TraceMap struct { traceMap } func (m *TraceMap) PutString(s string) (uint64, bool) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 17:50:53 UTC 2024 - 46.1K bytes - Viewed (0) -
src/go/build/deps_test.go
internal/cpu, internal/goarch, internal/godebugs, internal/goexperiment, internal/goos, internal/profilerecord, math/bits < internal/bytealg < internal/stringslite < internal/itoa < internal/unsafeheader < runtime/internal/sys < internal/runtime/syscall < internal/runtime/atomic < internal/runtime/exithook < runtime/internal/math < runtime < sync/atomic < internal/race
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 24 16:41:13 UTC 2024 - 19.2K bytes - Viewed (0) -
src/cmd/cover/cover.go
// counterVar[0] = <num_units> // counterVar[1] = pkgId // counterVar[2] = fnId // cv := f.fn.counterVar regHook := hookWrite(cv, 0, strconv.Itoa(len(f.fn.units))) + " ; " + hookWrite(cv, 1, mkPackageIdExpression()) + " ; " + hookWrite(cv, 2, strconv.Itoa(int(funcId))) + singleCtr // Insert the registration sequence into the function. We want this sequence to
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 14 19:41:17 UTC 2024 - 34.5K bytes - Viewed (0) -
src/cmd/compile/internal/types2/typestring.go
w.byte(')') } case *Named: // If hashing, write a unique prefix for t to represent its identity, since // named type identity is pointer identity. if w.ctxt != nil { w.string(strconv.Itoa(w.ctxt.getID(t))) } w.typeName(t.obj) // when hashing written for readability of the hash only if t.inst != nil { // instantiated type w.typeList(t.inst.targs.list())
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 03:01:18 UTC 2024 - 12.2K bytes - Viewed (0) -
src/go/types/api_test.go
{`package f6b; var _ = 1e-2000i`, `1e-2000i`, `complex128`, `(0 + 0i)`}, {`package f7b; var _ = -1e-2000i`, `-1e-2000i`, `complex128`, `(0 + 0i)`}, {`package g0; const (a = len([iota]int{}); b; c); const _ = c`, `c`, `int`, `2`}, // go.dev/issue/22341 {`package g1; var(j int32; s int; n = 1.0<<s == j)`, `1.0`, `int32`, `1`}, // go.dev/issue/48422 } for _, test := range tests {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 94.2K bytes - Viewed (0) -
src/os/exec/exec_test.go
// package monkey-patches those variables before running tests). func TestMain(m *testing.M) { flag.Parse() pid := os.Getpid() if os.Getenv("GO_EXEC_TEST_PID") == "" { os.Setenv("GO_EXEC_TEST_PID", strconv.Itoa(pid)) if runtime.GOOS == "windows" { // Normalize environment so that test behavior is consistent. // (The behavior of LookPath varies depending on this variable.) //
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Jun 07 20:13:53 UTC 2024 - 48.4K bytes - Viewed (0) -
src/go/token/position.go
// - invalid position without file name func (pos Position) String() string { s := pos.Filename if pos.IsValid() { if s != "" { s += ":" } s += strconv.Itoa(pos.Line) if pos.Column != 0 { s += fmt.Sprintf(":%d", pos.Column) } } if s == "" { s = "-" } return s } // Pos is a compact encoding of a source position within a file set.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 19.7K bytes - Viewed (0) -
src/reflect/type.go
for i, field := range fields { if field.Name == "" { panic("reflect.StructOf: field " + strconv.Itoa(i) + " has no name") } if !isValidFieldName(field.Name) { panic("reflect.StructOf: field " + strconv.Itoa(i) + " has invalid name") } if field.Type == nil { panic("reflect.StructOf: field " + strconv.Itoa(i) + " has no type") } f, fpkgpath := runtimeStructField(field) ft := f.Typ
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 17:58:53 UTC 2024 - 85.5K bytes - Viewed (0)