Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 246 for calculations (0.21 sec)

  1. test/fixedbugs/issue63657.go

    // run
    
    // Copyright 2023 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.
    
    // Make sure address calculations don't float up before
    // the corresponding nil check.
    
    package main
    
    type T struct {
    	a, b int
    }
    
    //go:noinline
    func f(x *T, p *bool, n int) {
    	*p = n != 0
    	useStack(1000)
    	g(&x.b)
    }
    
    //go:noinline
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 31 20:45:54 UTC 2023
    - 677 bytes
    - Viewed (0)
  2. platforms/software/resources/src/main/java/org/gradle/internal/resource/ExternalResourceReadResult.java

         * Or, it might be transfer encoded (e.g. HTTP chunked transfer, more bytes transferred).
         * Or, both.
         * Therefore, it is not necessarily an accurate input into transfer rate (a.k.a. throughput) calculations.
         * <p>
         * Moreover, it represents the content bytes <b>read</b>, not transferred.
         * If the read operation only reads a subset of what was transmitted, this number will be the read byte count.
         */
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 12 19:38:08 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  3. cmd/warm-backend-minio.go

    	if objectSize > maxMultipartPutObjectSize {
    		err = errors.New("entity too large")
    		return
    	}
    
    	configuredPartSize := minPartSize
    	// Use floats for part size for all calculations to avoid
    	// overflows during float64 to int64 conversions.
    	partSizeFlt := float64(objectSize / maxPartsCount)
    	partSizeFlt = math.Ceil(partSizeFlt/float64(configuredPartSize)) * float64(configuredPartSize)
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Sun Apr 21 11:43:18 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  4. src/hash/maphash/maphash.go

    //	return h.Sum64()
    func Bytes(seed Seed, b []byte) uint64 {
    	state := seed.s
    	if state == 0 {
    		panic("maphash: use of uninitialized Seed")
    	}
    
    	if len(b) > bufSize {
    		b = b[:len(b):len(b)] // merge len and cap calculations when reslicing
    		for len(b) > bufSize {
    			state = rthash(b[:bufSize], state)
    			b = b[bufSize:]
    		}
    	}
    	return rthash(b, state)
    }
    
    // String returns the hash of s with the given seed.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 13 19:15:34 UTC 2023
    - 7.9K bytes
    - Viewed (0)
  5. platforms/core-configuration/model-core/src/main/java/org/gradle/api/internal/provider/ProviderInternal.java

         * For example, the value content of an @InputFile property of a task is not known when that input file is the output of another a task.
         * The provider returned by this method may or not be the same instance as this provider. Generally, it is better to simplify any provider chains to replace calculations with fixed values and to remove
         * intermediate steps.
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jan 26 14:58:23 UTC 2024
    - 11.2K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/ssa/nilcheck.go

    	// dominating block. The efficacy of this pass depends heavily on the
    	// efficacy of the cse pass.
    	sdom := f.Sdom()
    
    	// TODO: Eliminate more nil checks.
    	// We can recursively remove any chain of fixed offset calculations,
    	// i.e. struct fields and array elements, even with non-constant
    	// indices: x is non-nil iff x.a.b[i].c is.
    
    	type walkState int
    	const (
    		Work     walkState = iota // process nil checks and traverse to dominees
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 31 20:45:54 UTC 2023
    - 11.3K bytes
    - Viewed (0)
  7. pkg/api/v1/resource/helpers.go

    			result[key] = value.DeepCopy()
    		}
    	}
    	return result
    }
    
    // reuseOrClearResourceList is a helper for avoiding excessive allocations of
    // resource lists within the inner loop of resource calculations.
    func reuseOrClearResourceList(reuse v1.ResourceList) v1.ResourceList {
    	if reuse == nil {
    		return make(v1.ResourceList, 4)
    	}
    	for k := range reuse {
    		delete(reuse, k)
    	}
    	return reuse
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Oct 26 13:58:16 UTC 2023
    - 16.3K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/types/size.go

    //
    //	type T *struct { next T }
    //
    // it is necessary to defer the calculation of the struct width
    // until after T has been initialized to be a pointer to that struct.
    // similarly, during import processing structs may be used
    // before their definition.  in those situations, calling
    // DeferCheckSize() stops width calculations until
    // ResumeCheckSize() is called, at which point all the
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 15K bytes
    - Viewed (0)
  9. maven-api-impl/src/main/java/org/apache/maven/internal/impl/model/MavenModelMerger.java

     * more adapted algorithms.
     *
     */
    public class MavenModelMerger extends MavenMerger {
    
        /**
         * The hint key for the child path adjustment used during inheritance for URL calculations.
         */
        public static final String CHILD_PATH_ADJUSTMENT = "child-path-adjustment";
    
        /**
         * The context key for the artifact id of the target model.
         */
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Fri Apr 12 10:50:18 UTC 2024
    - 22.8K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apiserver/pkg/cel/library/cost.go

    type CostEstimator struct {
    	// SizeEstimator provides a CostEstimator.EstimateSize that this CostEstimator will delegate size estimation
    	// calculations to if the size is not well known (i.e. a constant).
    	SizeEstimator checker.CostEstimator
    }
    
    func (l *CostEstimator) CallCost(function, overloadId string, args []ref.Val, result ref.Val) *uint64 {
    	switch function {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Apr 23 17:22:44 UTC 2024
    - 20.6K bytes
    - Viewed (0)
Back to top