- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 35 for mkstruct (2.61 sec)
-
src/cmd/compile/internal/test/abiutils_test.go
IN 3: R{ } offset: 40 typ: struct { float64; struct { [2]int64; struct {} }; struct {} } IN 4: R{ } offset: 80 typ: struct { float64; struct { [2]int64; struct {} }; struct {} } OUT 0: R{ } offset: 120 typ: struct { float64; struct { [2]int64; struct {} }; struct {} } OUT 1: R{ } offset: 160 typ: [2]bool OUT 2: R{ } offset: 168 typ: struct { float64; struct { [2]int64; struct {} }; struct {} }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Oct 04 15:11:40 UTC 2023 - 14.2K bytes - Viewed (0) -
src/cmd/compile/internal/ssa/decompose.go
} v.reset(OpArrayMake1) v.AddArg(elem) // Recursively decompose elem phi. decomposeUserPhi(elem) } // MaxStruct is the maximum number of fields a struct // can have and still be SSAable. const MaxStruct = 4 // StructMakeOp returns the opcode to construct a struct with the // given number of fields. func StructMakeOp(nf int) Op { switch nf { case 0: return OpStructMake0 case 1:
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Aug 23 21:22:15 UTC 2022 - 13.4K bytes - Viewed (0) -
pkg/slices/slices_test.go
} }) } } // nolint: unused type myStruct struct { a, b, c, d string n int } func makeRandomStructs(n int) []*myStruct { rand.Seed(42) // nolint: staticcheck structs := make([]*myStruct, n) for i := 0; i < n; i++ { structs[i] = &myStruct{n: rand.Intn(n)} // nolint: gosec } return structs } const N = 100_000
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri May 10 23:33:56 UTC 2024 - 18.2K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/apis/meta/v1/unstructured/helpers.go
for _, i := range dList.Items { unstruct := &Unstructured{} if err := s.decodeToUnstructured([]byte(i), unstruct); err != nil { return err } // This is hacky. Set the item's Kind and APIVersion to those inferred // from the List. if len(unstruct.GetKind()) == 0 && len(unstruct.GetAPIVersion()) == 0 { unstruct.SetKind(itemKind) unstruct.SetAPIVersion(listAPIVersion) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Jun 29 20:39:55 UTC 2023 - 16.3K bytes - Viewed (0) -
src/cmd/link/internal/ld/dwarf_test.go
mustHaveDWARF(t) t.Parallel() dir := t.TempDir() const prog = `package main import "fmt" type astruct struct { X int } type bstruct struct { X float32 } var globalptr *astruct var globalvar astruct var bvar0, bvar1, bvar2 bstruct func main() { fmt.Println(globalptr, globalvar, bvar0, bvar1, bvar2) } ` f := gobuild(t, dir, prog, NoOpt)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Feb 08 01:38:11 UTC 2024 - 48.6K bytes - Viewed (0) -
tensorflow/compiler/jit/device_compiler_test.cc
NameAttrList fn; fn.set_name("foo"); TF_EXPECT_OK(xla_device_compiler_->CompileIfNeeded( options, fn, SampleArgsForAddXY(), XlaCompiler::CompileOptions{}, DeviceCompileMode::kStrict, profiler_, &compilation_result, &xla_executable)); EXPECT_TRUE(compilation_result != nullptr); EXPECT_TRUE(xla_executable != nullptr); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Mar 12 06:33:33 UTC 2024 - 19.8K bytes - Viewed (0) -
src/runtime/runtime-gdb_test.go
types := []string{ "[]main.astruct;", "bucket<string,main.astruct>;", "hash<string,main.astruct>;", "main.astruct;", "hash<string,main.astruct> * map[string]main.astruct;", } for _, name := range types { if !strings.Contains(sgot, name) { t.Fatalf("could not find %s in 'info typrs astruct' output", name) } } } const constsSource = `
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Feb 21 22:16:54 UTC 2024 - 23.2K bytes - Viewed (0) -
src/cmd/compile/internal/typecheck/subr.go
c = lookdot0(s, t, save, ignorecase) if c != 0 { return c, false } } u = t if u.IsPtr() { u = u.Elem() } if !u.IsStruct() && !u.IsInterface() { return c, false } var fields []*types.Field if u.IsStruct() { fields = u.Fields() } else { fields = u.AllMethods() } for _, f := range fields { if f.Embedded == 0 || f.Sym == nil { continue }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 05 19:45:58 UTC 2023 - 20.2K bytes - Viewed (0) -
pkg/istio-agent/xds_proxy_test.go
Namespace: "default", InstanceIPs: []string{"1.1.1.1"}, }) }) } type fakeAckCache struct{} func (f *fakeAckCache) Get(string, wasmcache.GetOptions) (string, error) { return "test", nil } func (f *fakeAckCache) Cleanup() {} type fakeNackCache struct{} func (f *fakeNackCache) Get(string, wasmcache.GetOptions) (string, error) { return "", errors.New("error") }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Sat Mar 30 04:48:02 UTC 2024 - 18.6K bytes - Viewed (0) -
src/encoding/xml/read_test.go
</Items> <After>2</After> </Result> ` type PathTestItem struct { Value string } type PathTestA struct { Items []PathTestItem `xml:">Item1"` Before, After string } type PathTestB struct { Other []PathTestItem `xml:"Items>Item1"` Before, After string } type PathTestC struct { Values1 []string `xml:"Items>Item1>Value"`
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 26 19:58:28 UTC 2024 - 29.1K bytes - Viewed (0)