Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for maxID (0.13 sec)

  1. src/internal/trace/base.go

    		return
    	}
    	// Find the range of IDs.
    	maxID := EI(0)
    	minID := ^EI(0)
    	for id := range d.sparse {
    		if id > maxID {
    			maxID = id
    		}
    		if id < minID {
    			minID = id
    		}
    	}
    	if maxID >= math.MaxInt {
    		// We can't create a slice big enough to hold maxID elements
    		return
    	}
    	// We're willing to waste at most 2x memory.
    	if int(maxID-minID) > max(len(d.sparse), 2*len(d.sparse)) {
    		return
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 6.8K bytes
    - Viewed (0)
  2. src/vendor/golang.org/x/sys/cpu/cpu_x86.go

    		// These capabilities should always be enabled on amd64:
    		{Name: "sse2", Feature: &X86.HasSSE2, Required: runtime.GOARCH == "amd64"},
    	}
    }
    
    func archInit() {
    
    	Initialized = true
    
    	maxID, _, _, _ := cpuid(0, 0)
    
    	if maxID < 1 {
    		return
    	}
    
    	_, _, ecx1, edx1 := cpuid(1, 0)
    	X86.HasSSE2 = isSet(26, edx1)
    
    	X86.HasSSE3 = isSet(0, ecx1)
    	X86.HasPCLMULQDQ = isSet(1, ecx1)
    	X86.HasSSSE3 = isSet(9, ecx1)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 4.9K bytes
    - Viewed (0)
  3. tests/scopes_test.go

    	if result.RowsAffected != 2 {
    		t.Errorf("Should found two users's name in 1, 2, but got %v", result.RowsAffected)
    	}
    
    	var maxId int64
    	userTable := func(db *gorm.DB) *gorm.DB {
    		return db.WithContext(context.Background()).Table("users")
    	}
    	if err := DB.Scopes(userTable).Select("max(id)").Scan(&maxId).Error; err != nil {
    		t.Errorf("select max(id)")
    	}
    }
    
    func TestComplexScopes(t *testing.T) {
    	tests := []struct {
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Fri Jan 12 08:42:21 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  4. src/internal/cpu/cpu_x86.go

    			option{Name: "avx512f", Feature: &X86.HasAVX512F},
    			option{Name: "avx512bw", Feature: &X86.HasAVX512BW},
    			option{Name: "avx512vl", Feature: &X86.HasAVX512VL},
    		)
    	}
    
    	maxID, _, _, _ := cpuid(0, 0)
    
    	if maxID < 1 {
    		return
    	}
    
    	maxExtendedFunctionInformation, _, _, _ = cpuid(0x80000000, 0)
    
    	_, _, ecx1, _ := cpuid(1, 0)
    
    	X86.HasSSE3 = isSet(ecx1, cpuid_SSE3)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 13:40:20 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  5. src/index/suffixarray/sais2.go

    	} else {
    		induceSubL_8_64(text, sa, freq, bucket)
    		induceSubS_8_64(text, sa, freq, bucket)
    		length_8_64(text, sa, numLMS)
    		maxID := assignID_8_64(text, sa, numLMS)
    		if maxID < numLMS {
    			map_64(sa, numLMS)
    			recurse_64(sa, tmp, numLMS, maxID)
    			unmap_8_64(text, sa, numLMS)
    		} else {
    			// If maxID == numLMS, then each LMS-substring
    			// is unique, so the relative ordering of two LMS-suffixes
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 18 23:57:18 UTC 2024
    - 52.3K bytes
    - Viewed (0)
  6. src/index/suffixarray/sais.go

    		induceSubL_8_32(text, sa, freq, bucket)
    		induceSubS_8_32(text, sa, freq, bucket)
    		length_8_32(text, sa, numLMS)
    		maxID := assignID_8_32(text, sa, numLMS)
    		if maxID < numLMS {
    			map_32(sa, numLMS)
    			recurse_32(sa, tmp, numLMS, maxID)
    			unmap_8_32(text, sa, numLMS)
    		} else {
    			// If maxID == numLMS, then each LMS-substring
    			// is unique, so the relative ordering of two LMS-suffixes
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 18 23:57:18 UTC 2024
    - 32.4K bytes
    - Viewed (0)
  7. src/index/suffixarray/suffixarray_test.go

    func test(t *testing.T, build func([]byte) []int) {
    	t.Run("ababab...", func(t *testing.T) {
    		// Very repetitive input has numLMS = len(x)/2-1
    		// at top level, the largest it can be.
    		// But maxID is only two (aba and ab$).
    		size := 100000
    		if testing.Short() {
    			size = 10000
    		}
    		x := make([]byte, size)
    		for i := range x {
    			x[i] = "ab"[i%2]
    		}
    		testSA(t, x, build)
    	})
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 14.1K bytes
    - Viewed (0)
  8. src/net/http/h2_bundle.go

    	// - A closed stream that has been removed (this will have ID <= maxID)
    	// - An idle stream that is being used for "grouping" (this will have ID > maxID)
    	n := ws.nodes[streamID]
    	if n == nil {
    		if streamID <= ws.maxID || ws.maxIdleNodesInTree == 0 {
    			return
    		}
    		ws.maxID = streamID
    		n = &http2priorityNode{
    			q:      *ws.queuePool.get(),
    			id:     streamID,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 364.1K bytes
    - Viewed (0)
  9. pkg/apis/core/validation/validation_test.go

    				FSGroup:            &minGroupID,
    			},
    			RestartPolicy: core.RestartPolicyAlways,
    			DNSPolicy:     core.DNSClusterFirst,
    		},
    		"populate RunAsUser SupplementalGroups FSGroup with maxID 2147483647": {
    			Containers: []core.Container{{Name: "ctr", Image: "image", ImagePullPolicy: "IfNotPresent", TerminationMessagePolicy: "File"}},
    			SecurityContext: &core.PodSecurityContext{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 857.7K bytes
    - Viewed (0)
Back to top