- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 27 for slicelen (0.14 sec)
-
test/indirect.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Feb 23 07:47:26 UTC 2012 - 1.4K bytes - Viewed (0) -
src/cmd/compile/internal/ssa/_gen/dec.rules
(Store dst (StringMake ptr len) mem) => (Store {typ.Int} (OffPtr <typ.IntPtr> [config.PtrSize] dst) len (Store {typ.BytePtr} dst ptr mem)) // slice ops (SlicePtr (SliceMake ptr _ _ )) => ptr (SliceLen (SliceMake _ len _)) => len (SliceCap (SliceMake _ _ cap)) => cap (SlicePtrUnchecked (SliceMake ptr _ _ )) => ptr (Load <t> ptr mem) && t.IsSlice() => (SliceMake (Load <t.Elem().PtrTo()> ptr mem)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 12 00:48:31 UTC 2023 - 6.9K bytes - Viewed (0) -
src/cmd/compile/internal/ssa/_gen/generic.rules
// a more comprehensive set. (SliceLen (SliceMake _ (Const64 <t> [c]) _)) => (Const64 <t> [c]) (SliceCap (SliceMake _ _ (Const64 <t> [c]))) => (Const64 <t> [c]) (SliceLen (SliceMake _ (Const32 <t> [c]) _)) => (Const32 <t> [c]) (SliceCap (SliceMake _ _ (Const32 <t> [c]))) => (Const32 <t> [c]) (SlicePtr (SliceMake (SlicePtr x) _ _)) => (SlicePtr x) (SliceLen (SliceMake _ (SliceLen x) _)) => (SliceLen x)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 16 22:21:05 UTC 2024 - 135.3K bytes - Viewed (0) -
src/cmd/compile/internal/ssa/rewritedec.go
v_0 := v.Args[0] b := v.Block config := b.Func.Config typ := &b.Func.Config.Types // match: (SliceLen (SliceMake _ len _)) // result: len for { if v_0.Op != OpSliceMake { break } len := v_0.Args[1] v.copyOf(len) return true } // match: (SliceLen x:(Load <t> ptr mem)) // cond: t.IsSlice() // result: @x.Block (Load <typ.Int> (OffPtr <typ.IntPtr> [config.PtrSize] ptr) mem)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 12 00:48:31 UTC 2023 - 24.9K bytes - Viewed (0) -
src/cmd/compile/internal/ssa/_gen/genericOps.go
// Slices {name: "SliceMake", argLength: 3}, // arg0=ptr, arg1=len, arg2=cap {name: "SlicePtr", argLength: 1, typ: "BytePtr"}, // ptr(arg0) {name: "SliceLen", argLength: 1}, // len(arg0) {name: "SliceCap", argLength: 1}, // cap(arg0) // SlicePtrUnchecked, like SlicePtr, extracts the pointer from a slice.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 15:49:20 UTC 2024 - 42.6K bytes - Viewed (0) -
src/cmd/compile/internal/ssa/rewritegeneric.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Apr 22 18:24:47 UTC 2024 - 812.2K bytes - Viewed (0) -
src/runtime/mspanset.go
// Do we need to add a block? spineLen := b.spineLen.Load() var block *spanSetBlock retry: if top < spineLen { block = b.spine.Load().lookup(top).Load() } else { // Add a new block to the spine, potentially growing // the spine. lock(&b.spineLock) // spineLen cannot change until we release the lock, // but may have changed while we were waiting. spineLen = b.spineLen.Load() if top < spineLen {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 25 19:53:03 UTC 2024 - 13.1K bytes - Viewed (0) -
src/go/parser/testdata/sort.go2
sort.Sort(orderedSlice[Elem](s)) } type sliceFn[Elem any] struct { s []Elem f func(Elem, Elem) bool } func (s sliceFn[Elem]) Len() int { return len(s.s) } func (s sliceFn[Elem]) Less(i, j int) bool { return s.f(s.s[i], s.s[j]) } func (s sliceFn[Elem]) Swap(i, j int) { s.s[i], s.s[j] = s.s[j], s.s[i] } // SliceFn sorts the slice s according to the function f. func SliceFn[Elem any](s []Elem, f func(Elem, Elem) bool) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Nov 24 19:44:06 UTC 2020 - 902 bytes - Viewed (0) -
src/runtime/symtab_test.go
{"arrayLit[0]", arrayLit[0], 20}, {"arrayLit[1]", arrayLit[1], 21}, {"arrayLit[2]", arrayLit[2], 21}, {"arrayLit[3]", arrayLit[3], 22}, {"sliceLit[0]", sliceLit[0], 24}, {"sliceLit[1]", sliceLit[1], 25}, {"sliceLit[2]", sliceLit[2], 25}, {"sliceLit[3]", sliceLit[3], 26}, {"mapLit[29]", mapLit[29], 29}, {"mapLit[30]", mapLit[30], 30},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 17 21:46:33 UTC 2022 - 7.5K bytes - Viewed (0) -
pkg/proxy/endpointslicecache.go
func (cache *EndpointSliceCache) esDataChanged(serviceKey types.NamespacedName, sliceKey string, esData *endpointSliceData) bool { if _, ok := cache.trackerByServiceMap[serviceKey]; ok { appliedData, appliedOk := cache.trackerByServiceMap[serviceKey].applied[sliceKey] pendingData, pendingOk := cache.trackerByServiceMap[serviceKey].pending[sliceKey] // If there's already a pending value, return whether or not this would
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Apr 29 21:07:21 UTC 2024 - 11.7K bytes - Viewed (1)