- Sort Score
- Result 10 results
- Languages All
Results 101 - 110 of 591 for elem3 (0.18 sec)
-
src/runtime/checkptr.go
import "unsafe" func checkptrAlignment(p unsafe.Pointer, elem *_type, n uintptr) { // nil pointer is always suitably aligned (#47430). if p == nil { return } // Check that (*[n]elem)(p) is appropriately aligned. // Note that we allow unaligned pointers if the types they point to contain // no pointers themselves. See issue 37298. // TODO(mdempsky): What about fieldAlign? if elem.Pointers() && uintptr(p)&(uintptr(elem.Align_)-1) != 0 {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 00:18:55 UTC 2024 - 3.6K bytes - Viewed (0) -
src/path/filepath/path_plan9.go
return strings.Split(path, string(ListSeparator)) } func abs(path string) (string, error) { return unixAbs(path) } func join(elem []string) string { // If there's a bug here, fix the logic in ./path_unix.go too. for i, e := range elem { if e != "" { return Clean(strings.Join(elem[i:], string(Separator))) } } return "" } func sameWord(a, b string) bool { return a == b
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 26 23:07:50 UTC 2024 - 926 bytes - Viewed (0) -
src/cmd/compile/internal/walk/compare.go
and(notCond) } } } else { step := int64(1) remains := t.NumElem() * t.Elem().Size() combine64bit := unalignedLoad && types.RegSize == 8 && t.Elem().Size() <= 4 && t.Elem().IsInteger() combine32bit := unalignedLoad && t.Elem().Size() <= 2 && t.Elem().IsInteger() combine16bit := unalignedLoad && t.Elem().Size() == 1 && t.Elem().IsInteger() for i := int64(0); remains > 0; { var convType *types.Type switch {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 24 21:55:14 UTC 2023 - 16.2K bytes - Viewed (0) -
src/cmd/compile/internal/walk/builtin.go
// if a.ptr != b.ptr { memmove(a.ptr, b.ptr, n*sizeof(elem(a))) } // } // n; // // Also works if b is a string. func walkCopy(n *ir.BinaryExpr, init *ir.Nodes, runtimecall bool) ir.Node { if n.X.Type().Elem().HasPointers() { ir.CurFunc.SetWBPos(n.Pos()) fn := writebarrierfn("typedslicecopy", n.X.Type().Elem(), n.Y.Type().Elem()) n.X = cheapExpr(n.X, init) ptrL, lenL := backingArrayPtrLen(n.X)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Mar 08 22:35:22 UTC 2024 - 31.2K bytes - Viewed (0) -
src/encoding/gob/encode.go
return } for i := 0; i < length; i++ { elem := value.Index(i) if elemIndir > 0 { elem = encIndirect(elem, elemIndir) // TODO: Is elem guaranteed valid? If so we could avoid this check. if !valid(elem) { errorf("encodeArray: nil element") } } op(nil, state, elem) } } // encodeReflectValue is a helper for maps. It encodes the value v.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 16 02:00:26 UTC 2024 - 19K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/go/analysis/passes/buildtag/buildtag_old.go
} func checkArguments(fields []string) error { for _, arg := range fields[1:] { for _, elem := range strings.Split(arg, ",") { if strings.HasPrefix(elem, "!!") { return fmt.Errorf("invalid double negative in build constraint: %s", arg) } elem = strings.TrimPrefix(elem, "!") for _, c := range elem { if !unicode.IsLetter(c) && !unicode.IsDigit(c) && c != '_' && c != '.' {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 03 02:38:00 UTC 2024 - 4.3K bytes - Viewed (0) -
src/reflect/benchmark_test.go
SliceAny Value MapStringAny Value }{ Bool: ValueOf(new(bool)).Elem(), String: ValueOf(new(string)).Elem(), Bytes: ValueOf(new([]byte)).Elem(), NamedBytes: ValueOf(new(namedBytes)).Elem(), BytesArray: ValueOf(new([32]byte)).Elem(), SliceAny: ValueOf(new([]any)).Elem(), MapStringAny: ValueOf(new(map[string]any)).Elem(), } var sinkAll struct { RawBool bool RawString string
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sun Nov 19 17:09:03 UTC 2023 - 8.8K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/go/analysis/passes/printf/types.go
return m.match(typ.Key(), false) && m.match(typ.Elem(), false) case *types.Chan: return m.t&argPointer != 0 case *types.Array: // Same as slice. if types.Identical(typ.Elem().Underlying(), types.Typ[types.Byte]) && m.t&argString != 0 { return true // %s matches []byte } // Recur: []int matches %d. return m.match(typ.Elem(), false) case *types.Slice: // Same as array.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 02:20:05 UTC 2024 - 8.6K bytes - Viewed (0) -
src/cmd/compile/internal/walk/walk.go
case 1: return typecheck.LookupRuntime(name, t.Elem()) case 2: return typecheck.LookupRuntime(name, t.Elem(), t.Elem()) } base.Fatalf("chanfn %d", n) return nil } func mapfn(name string, t *types.Type, isfat bool) ir.Node { if !t.IsMap() { base.Fatalf("mapfn %v", t) } if mapfast(t) == mapslow || isfat { return typecheck.LookupRuntime(name, t.Key(), t.Elem(), t.Key(), t.Elem()) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Feb 27 20:56:00 UTC 2024 - 10.4K bytes - Viewed (0) -
src/cmd/compile/internal/types2/resolver.go
// Note that this uses / always, even on Windows, because Go import // paths always use forward slashes. path := obj.imported.path elem := path if i := strings.LastIndex(elem, "/"); i >= 0 { elem = elem[i+1:] } if obj.name == "" || obj.name == "." || obj.name == elem { check.softErrorf(obj, UnusedImport, "%q imported and not used", path) } else {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 18 14:10:44 UTC 2024 - 26.3K bytes - Viewed (0)