Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for shorterOf (0.81 sec)

  1. src/runtime/mprof.go

    // Copyright 2009 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // Malloc profiling.
    // Patterned after tcmalloc's algorithms; shorter code.
    
    package runtime
    
    import (
    	"internal/abi"
    	"internal/profilerecord"
    	"internal/runtime/atomic"
    	"runtime/internal/sys"
    	"unsafe"
    )
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:57:37 UTC 2024
    - 53.3K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiextensions-apiserver/test/integration/ratcheting_test.go

    						"minField":   "valuelength13",
    						"maxField":   "valueThatsVeryLongSee",
    						"otherField": "otherValue",
    					}},
    				applyPatchOperation{
    					"make maxField shorter",
    					myCRDV1Beta1, myCRDInstanceName, map[string]interface{}{
    						"maxField": "l2",
    					}},
    				expectError{
    					applyPatchOperation{
    						"make maxField too long",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 28 08:48:22 UTC 2024
    - 59.5K bytes
    - Viewed (0)
  3. src/time/format.go

    			return i, val[len(v):], nil
    		}
    	}
    	return -1, val, errBad
    }
    
    // appendInt appends the decimal form of x to b and returns the result.
    // If the decimal form (excluding sign) is shorter than width, the result is padded with leading 0's.
    // Duplicates functionality in strconv, but avoids dependency.
    func appendInt(b []byte, x int, width int) []byte {
    	u := uint(x)
    	if x < 0 {
    		b = append(b, '-')
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 11 17:09:28 UTC 2024
    - 49.3K bytes
    - Viewed (0)
  4. cmd/xl-storage-format-v2.go

    			if wantMax > size {
    				wantMax = size
    			}
    			if err := readMore(wantMax); err != nil {
    				return nil, err
    			}
    
    			if int64(len(buf)) < want {
    				return nil, fmt.Errorf("buffer shorter than expected (buflen: %d, want: %d): %w", len(buf), want, errFileCorrupt)
    			}
    
    			tmp = buf[want:]
    			_, after, err := msgp.ReadUint32Bytes(tmp)
    			if err != nil {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed May 29 19:14:09 UTC 2024
    - 63.6K bytes
    - Viewed (0)
  5. src/cmd/go/internal/modload/buildlist.go

    	//
    	// Once that is done, we may still need to add more roots to cover upgraded or
    	// otherwise-missing test dependencies for packages in "all". For those test
    	// dependencies, we prefer to add roots for packages with shorter import
    	// stacks first, on the theory that the module requirements for those will
    	// tend to fill in the requirements for their transitive imports (which have
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 16:04:44 UTC 2024
    - 53.8K bytes
    - Viewed (0)
  6. src/runtime/map.go

    	// "too many" means (approximately) as many overflow buckets as regular buckets.
    	// See incrnoverflow for more details.
    	if B > 15 {
    		B = 15
    	}
    	// The compiler doesn't see here that B < 16; mask B to generate shorter shift code.
    	return noverflow >= uint16(1)<<(B&15)
    }
    
    // growing reports whether h is growing. The growth may be to the same size or bigger.
    func (h *hmap) growing() bool {
    	return h.oldbuckets != nil
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 57.6K bytes
    - Viewed (0)
  7. pilot/pkg/config/kube/gateway/conversion.go

    		if len(ourListener) > len(checkListener) {
    			// If our hostname is longer, it must be more exact than the check
    			continue
    		}
    		// Ours is shorter. If it matches the checkListener, then it should ONLY match that one
    		// Note protocol, port, etc are already considered when we construct bannedHostnames
    		if routeHost.SubsetOf(host.Name(checkListener)) {
    			return false
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jun 14 04:34:37 UTC 2024
    - 84.7K bytes
    - Viewed (0)
  8. src/cmd/go/go_test.go

    	// 'go env GOVERSION' is just "<version>".
    	if cmdVersion == envVersion || !strings.Contains(cmdVersion, envVersion) {
    		t.Fatalf("'go env GOVERSION' %q should be a shorter substring of 'go version' %q", envVersion, cmdVersion)
    	}
    }
    
    const (
    	noMatchesPattern = `(?m)^ok.*\[no tests to run\]`
    	okPattern        = `(?m)^ok`
    )
    
    // Issue 18044.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 81.1K bytes
    - Viewed (0)
  9. src/cmd/link/internal/ld/lib.go

    				dt := ldr.SymType(dup)
    				if st == sym.Sxxx && dt != sym.Sxxx {
    					ldr.CopySym(dup, s)
    				}
    			}
    		}
    	}
    }
    
    // typeSymbolMangle mangles the given symbol name into something shorter.
    //
    // Keep the type:. prefix, which parts of the linker (like the
    // DWARF generator) know means the symbol is not decodable.
    // Leave type:runtime. symbols alone, because other parts of
    // the linker manipulates them.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 21 18:45:27 UTC 2024
    - 88.6K bytes
    - Viewed (0)
Back to top