- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for maxID (0.06 sec)
-
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) -
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) -
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) -
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)