Search Options

Results per page
Sort
Preferred Languages
Advance

Results 121 - 130 of 147 for mmap (0.06 sec)

  1. src/internal/trace/summary.go

    	// (starting from goid).
    	gmap := make(map[GoID]struct{})
    	gmap[goid] = struct{}{}
    	for i := 0; i < 2; i++ {
    		// Copy the map.
    		gmap1 := make(map[GoID]struct{})
    		for g := range gmap {
    			gmap1[g] = struct{}{}
    		}
    		for _, edge := range unblockEdges {
    			if _, ok := gmap[edge.operand]; ok {
    				gmap1[edge.operator] = struct{}{}
    			}
    		}
    		gmap = gmap1
    	}
    	return gmap
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 20.7K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/test/inl_test.go

    			"rand32",
    			"readUnaligned32",
    			"readUnaligned64",
    			"releasem",
    			"roundupsize",
    			"stackmapdata",
    			"stringStructOf",
    			"subtract1",
    			"subtractb",
    			"tophash",
    			"(*bmap).keys",
    			"(*bmap).overflow",
    			"(*waitq).enqueue",
    			"funcInfo.entry",
    
    			// GC-related ones
    			"cgoInRange",
    			"gclinkptr.ptr",
    			"guintptr.ptr",
    			"heapBitsSlice",
    			"markBits.isMarked",
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 09 04:07:57 UTC 2024
    - 10.7K bytes
    - Viewed (0)
  3. src/cmd/vendor/golang.org/x/text/internal/language/lookup.go

    	if !tag.FixCase(form, key) {
    		return 0, ErrSyntax
    	}
    	i := idx.Index(key)
    	if i == -1 {
    		return 0, NewValueError(key)
    	}
    	return i, nil
    }
    
    func searchUint(imap []uint16, key uint16) int {
    	return sort.Search(len(imap), func(i int) bool {
    		return imap[i] >= key
    	})
    }
    
    type Language uint16
    
    // getLangID returns the langID of s if s is a canonical subtag
    // or langUnknown if s is not a canonical subtag.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 24 13:01:26 UTC 2024
    - 12.1K bytes
    - Viewed (0)
  4. src/math/rand/rand_test.go

    		testNormalDistribution(t, numTestSamples, 0, 1, seed)
    	}
    }
    
    func TestNonStandardNormalValues(t *testing.T) {
    	sdmax := 1000.0
    	mmax := 1000.0
    	if testing.Short() {
    		sdmax = 5
    		mmax = 5
    	}
    	for sd := 0.5; sd < sdmax; sd *= 2 {
    		for m := 0.5; m < mmax; m *= 2 {
    			for _, seed := range testSeeds {
    				testNormalDistribution(t, numTestSamples, m, sd, seed)
    				if testing.Short() {
    					break
    				}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 18:42:28 UTC 2024
    - 16.9K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiserver/pkg/cel/value.go

    // from each map are equal.
    func (m *MapValue) Equal(other ref.Val) ref.Val {
    	oMap, isMap := other.(traits.Mapper)
    	if !isMap {
    		return types.MaybeNoSuchOverloadErr(other)
    	}
    	if m.Size() != oMap.Size() {
    		return types.False
    	}
    	for name, field := range m.fieldMap {
    		k := types.String(name)
    		ov, found := oMap.Find(k)
    		if !found {
    			return types.False
    		}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 10 22:05:55 UTC 2022
    - 20.5K bytes
    - Viewed (0)
  6. src/math/rand/v2/rand_test.go

    		testNormalDistribution(t, numTestSamples, 0, 1, seed)
    	}
    }
    
    func TestNonStandardNormalValues(t *testing.T) {
    	sdmax := 1000.0
    	mmax := 1000.0
    	if testing.Short() {
    		sdmax = 5
    		mmax = 5
    	}
    	for sd := 0.5; sd < sdmax; sd *= 2 {
    		for m := 0.5; m < mmax; m *= 2 {
    			for _, seed := range testSeeds {
    				testNormalDistribution(t, numTestSamples, m, sd, seed)
    				if testing.Short() {
    					break
    				}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 18:42:28 UTC 2024
    - 17.4K bytes
    - Viewed (0)
  7. src/cmd/vet/testdata/print/print.go

    func PrintfTests() {
    	var b bool
    	var i int
    	var r rune
    	var s string
    	var x float64
    	var p *int
    	var imap map[int]int
    	var fslice []float64
    	var c complex64
    	// Some good format/argtypes
    	fmt.Printf("")
    	fmt.Printf("%b %b %b", 3, i, x)
    	fmt.Printf("%c %c %c %c", 3, i, 'x', r)
    	fmt.Printf("%d %d %d", 3, i, imap)
    	fmt.Printf("%e %e %e %e", 3e9, x, fslice, c)
    	fmt.Printf("%E %E %E %E", 3e9, x, fslice, c)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 09 01:28:01 UTC 2023
    - 27.5K bytes
    - Viewed (0)
  8. src/runtime/export_test.go

    	rw.rw.lock()
    }
    
    func (rw *RWMutex) Unlock() {
    	rw.rw.unlock()
    }
    
    const RuntimeHmapSize = unsafe.Sizeof(hmap{})
    
    func MapBucketsCount(m map[int]int) int {
    	h := *(**hmap)(unsafe.Pointer(&m))
    	return 1 << h.B
    }
    
    func MapBucketsPointerIsNil(m map[int]int) bool {
    	h := *(**hmap)(unsafe.Pointer(&m))
    	return h.buckets == nil
    }
    
    func OverLoadFactor(count int, B uint8) 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)
  9. src/syscall/types_linux.go

    // license that can be found in the LICENSE file.
    
    //go:build ignore
    
    /*
    Input to cgo -godefs.  See also mkerrors.sh and mkall.sh
    */
    
    // +godefs map struct_in_addr [4]byte /* in_addr */
    // +godefs map struct_in6_addr [16]byte /* in6_addr */
    
    package syscall
    
    /*
    #define _LARGEFILE_SOURCE
    #define _LARGEFILE64_SOURCE
    #define _FILE_OFFSET_BITS 64
    #define _GNU_SOURCE
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 26 20:15:45 UTC 2022
    - 10.9K bytes
    - Viewed (0)
  10. src/runtime/map_test.go

    	type T [4000]byte
    	m := map[int]T{}
    	x := m[0]
    	if x != (T{}) {
    		t.Errorf("map value not zero")
    	}
    	y, ok := m[0]
    	if ok {
    		t.Errorf("map value should be missing")
    	}
    	if y != (T{}) {
    		t.Errorf("map value not zero")
    	}
    }
    
    type empty struct {
    }
    
    func TestEmptyKeyAndValue(t *testing.T) {
    	a := make(map[int]empty, 4)
    	b := make(map[empty]int, 4)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 33.5K bytes
    - Viewed (0)
Back to top