Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 176 for Floor (0.06 sec)

  1. src/math/rand/v2/zipf.go

    func (z *Zipf) Uint64() uint64 {
    	if z == nil {
    		panic("rand: nil Zipf")
    	}
    	k := 0.0
    
    	for {
    		r := z.r.Float64() // r on [0,1]
    		ur := z.hxm + r*z.hx0minusHxm
    		x := z.hinv(ur)
    		k = math.Floor(x + 0.5)
    		if k-x <= z.s {
    			break
    		}
    		if ur >= z.h(k+0.5)-math.Exp(-math.Log(k+z.v)*z.q) {
    			break
    		}
    	}
    	return uint64(k)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 30 14:29:30 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  2. cmd/kube-proxy/app/server_linux.go

    	if config.MaxPerCore != nil && *config.MaxPerCore > 0 {
    		floor := 0
    		if config.Min != nil {
    			floor = int(*config.Min)
    		}
    		scaled := int(*config.MaxPerCore) * detectNumCPU()
    		if scaled > floor {
    			logger.V(3).Info("GetConntrackMax: using scaled conntrack-max-per-core")
    			return scaled, nil
    		}
    		logger.V(3).Info("GetConntrackMax: using conntrack-min")
    		return floor, nil
    	}
    	return 0, nil
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Jun 08 13:48:54 UTC 2024
    - 18.1K bytes
    - Viewed (0)
  3. android/guava-tests/benchmark/com/google/common/cache/LoadingCacheSingleThreadBenchmark.java

      static AtomicLong misses = new AtomicLong(0);
    
      @BeforeExperiment
      void setUp() {
        // random integers will be generated in this range, then raised to the
        // power of (1/concentration) and floor()ed
        max = Ints.checkedCast((long) Math.pow(distinctKeys, concentration));
    
        cache =
            CacheBuilder.newBuilder()
                .concurrencyLevel(segments)
                .maximumSize(maximumSize)
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 3.4K bytes
    - Viewed (0)
  4. src/internal/runtime/atomic/atomic_s390x.s

    	// containing v to OR with the entire word atomically.
    	MOVD	$(3<<3), R5
    	RXSBG	$59, $60, $3, R3, R5 // R5 = 24 - ((addr % 4) * 8) = ((addr & 3) << 3) ^ (3 << 3)
    	ANDW	$~3, R3              // R3 = floor(addr, 4) = addr &^ 3
    	SLW	R5, R4               // R4 = uint32(v) << R5
    	LAO	R4, R6, 0(R3)        // R6 = *R3; *R3 |= R4; (atomic)
    	RET
    
    // func And8(addr *uint8, v uint8)
    TEXT ·And8(SB), NOSPLIT, $0-9
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 7.1K bytes
    - Viewed (0)
  5. src/main/webapp/js/admin/popper.min.js.map

     (placement === 'bottom' &&\n        floor(popperOffsets.top) < floor(refOffsets.bottom));\n\n    const overflowsLeft = floor(popperOffsets.left) < floor(boundaries.left);\n    const overflowsRight = floor(popperOffsets.right) > floor(boundaries.right);\n    const overflowsTop = floor(popperOffsets.top) < floor(boundaries.top);\n    const overflowsBottom =\n      floor(popperOffsets.bottom) > floor(boundaries.bottom);\n\n    const overflowsBoundaries =\n      (placement === 'left' && overflowsLeft)...
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Fri Feb 07 10:28:50 UTC 2020
    - 121K bytes
    - Viewed (0)
  6. pkg/kubelet/kuberuntime/kuberuntime_container_linux.go

    			// `memory.high=floor[(requests.memory + memory throttling factor * (limits.memory or node allocatable memory - requests.memory))/pageSize] * pageSize`
    			// where default value of memory throttling factor is set to 0.9
    			// More info: https://git.k8s.io/enhancements/keps/sig-node/2570-memory-qos
    			memoryHigh := int64(0)
    			if memoryLimit != 0 {
    				memoryHigh = int64(math.Floor(
    					float64(memoryRequest)+
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 17.2K bytes
    - Viewed (0)
  7. guava-tests/benchmark/com/google/common/math/BigIntegerMathRoundingBenchmark.java

      private static final BigInteger[] nonzero2 = new BigInteger[ARRAY_SIZE];
      private static final BigInteger[] positive = new BigInteger[ARRAY_SIZE];
    
      @Param({"DOWN", "UP", "FLOOR", "CEILING", "HALF_EVEN", "HALF_UP", "HALF_DOWN"})
      RoundingMode mode;
    
      @BeforeExperiment
      void setUp() {
        for (int i = 0; i < ARRAY_SIZE; i++) {
          positive[i] = randomPositiveBigInteger(1024);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Jun 30 13:06:20 UTC 2020
    - 2.8K bytes
    - Viewed (0)
  8. src/math/cmplx/tan.go

    	// is set by t*PIn being representable as a float64 without error
    	// where t is given by t = floor(x * (1 / Pi)) and PIn are the leading partial
    	// terms of Pi. Since the leading terms, PI1 and PI2 below, have 30 and 32
    	// trailing zero bits respectively, t should have less than 30 significant bits.
    	//	t < 1<<30  -> floor(x*(1/Pi)+0.5) < 1<<30 -> x < (1<<30-1) * Pi - 0.5
    	// So, conservatively we can take x < 1<<30.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 01 03:16:37 UTC 2020
    - 8.5K bytes
    - Viewed (0)
  9. docs/en/docs/js/custom.js

        createTermynals();
        loadVisibleTermynals();
    }
    
    function shuffle(array) {
        var currentIndex = array.length, temporaryValue, randomIndex;
        while (0 !== currentIndex) {
            randomIndex = Math.floor(Math.random() * currentIndex);
            currentIndex -= 1;
            temporaryValue = array[currentIndex];
            array[currentIndex] = array[randomIndex];
            array[randomIndex] = temporaryValue;
        }
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sat May 08 17:50:56 UTC 2021
    - 6.6K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/math/DoubleMathTest.java

    import static com.google.common.math.MathTesting.POSITIVE_FINITE_DOUBLE_CANDIDATES;
    import static java.math.RoundingMode.CEILING;
    import static java.math.RoundingMode.DOWN;
    import static java.math.RoundingMode.FLOOR;
    import static java.math.RoundingMode.HALF_DOWN;
    import static java.math.RoundingMode.HALF_EVEN;
    import static java.math.RoundingMode.HALF_UP;
    import static java.math.RoundingMode.UNNECESSARY;
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Feb 07 17:50:39 UTC 2024
    - 28.1K bytes
    - Viewed (0)
Back to top