Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 241 for bounded (1.4 sec)

  1. android/guava/src/com/google/common/math/BigIntegerMath.java

      public static boolean isPowerOfTwo(BigInteger x) {
        checkNotNull(x);
        return x.signum() > 0 && x.getLowestSetBit() == x.bitLength() - 1;
      }
    
      /**
       * Returns the base-2 logarithm of {@code x}, rounded according to the specified rounding mode.
       *
       * @throws IllegalArgumentException if {@code x <= 0}
       * @throws ArithmeticException if {@code mode} is {@link RoundingMode#UNNECESSARY} and {@code x}
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Feb 07 17:50:39 UTC 2024
    - 18.9K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/math/MathTesting.java

          int x = 1 << exponent;
          intValues.add(x, x + 1, x - 1);
        }
        intValues.add(9999).add(10000).add(10001).add(1000000); // near powers of 10
        intValues.add(5792).add(5793); // sqrt(2^25) rounded up and down
        POSITIVE_INTEGER_CANDIDATES = intValues.build();
        NEGATIVE_INTEGER_CANDIDATES =
            ImmutableList.copyOf(
                Iterables.concat(
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Oct 10 19:45:10 UTC 2022
    - 11.2K bytes
    - Viewed (0)
  3. src/math/big/ratconv.go

    // with that many fractional digits is exact or rounded.
    //
    // Examples:
    //
    //	x      n    exact    decimal representation n fractional digits
    //	0      0    true     0
    //	1      0    true     1
    //	1/2    1    true     0.5
    //	1/3    0    false    0       (0.333... rounded)
    //	1/4    2    true     0.25
    //	1/6    1    false    0.2     (0.166... rounded)
    func (x *Rat) FloatPrec() (n int, exact bool) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 15 22:16:34 UTC 2023
    - 12.3K bytes
    - Viewed (0)
  4. src/math/big/rat_test.go

    		return false
    	}
    	if df.Cmp(df0) == 0 && !isEven32(f) {
    		t.Errorf("Rat(%v).Float32() = %g (%b); halfway should have rounded to %g (%b) instead", r, f, f, f0, f0)
    		return false
    	}
    	if df.Cmp(df1) == 0 && !isEven32(f) {
    		t.Errorf("Rat(%v).Float32() = %g (%b); halfway should have rounded to %g (%b) instead", r, f, f, f1, f1)
    		return false
    	}
    	return true
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jan 07 00:15:59 UTC 2022
    - 18.9K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/math/IntMath.java

        // to make sure bit twiddling works as expected.
        return ~~(x - y) >>> (Integer.SIZE - 1);
      }
    
      /**
       * Returns the base-2 logarithm of {@code x}, rounded according to the specified rounding mode.
       *
       * @throws IllegalArgumentException if {@code x <= 0}
       * @throws ArithmeticException if {@code mode} is {@link RoundingMode#UNNECESSARY} and {@code x}
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Feb 07 17:50:39 UTC 2024
    - 23.5K bytes
    - Viewed (0)
  6. guava/src/com/google/common/math/BigIntegerMath.java

      public static boolean isPowerOfTwo(BigInteger x) {
        checkNotNull(x);
        return x.signum() > 0 && x.getLowestSetBit() == x.bitLength() - 1;
      }
    
      /**
       * Returns the base-2 logarithm of {@code x}, rounded according to the specified rounding mode.
       *
       * @throws IllegalArgumentException if {@code x <= 0}
       * @throws ArithmeticException if {@code mode} is {@link RoundingMode#UNNECESSARY} and {@code x}
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Feb 07 17:50:39 UTC 2024
    - 18.9K bytes
    - Viewed (0)
  7. pkg/volume/csi/fake/fake_client.go

    		VolumeContext: req.GetVolumeContext(),
    	}
    
    	fsType := ""
    	fsTypes := "block|ext4|xfs|zfs"
    	mounted := req.GetVolumeCapability().GetMount()
    	if mounted != nil {
    		fsType = mounted.GetFsType()
    		csiVol.MountFlags = mounted.GetMountFlags()
    		csiVol.VolumeMountGroup = mounted.VolumeMountGroup
    	}
    	if !strings.Contains(fsTypes, fsType) {
    		return nil, errors.New("invalid fstype")
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 20 14:49:03 UTC 2023
    - 16K bytes
    - Viewed (0)
  8. src/strconv/atof.go

    // Three common cases:
    //
    //	value is exact integer
    //	value is exact integer * exact power of ten
    //	value is exact integer / exact power of ten
    //
    // These all produce potentially inexact but correctly rounded answers.
    func atof64exact(mantissa uint64, exp int, neg bool) (f float64, ok bool) {
    	if mantissa>>float64info.mantbits != 0 {
    		return
    	}
    	f = float64(mantissa)
    	if neg {
    		f = -f
    	}
    	switch {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 06 18:50:50 UTC 2022
    - 15.9K bytes
    - Viewed (0)
  9. build-logic/buildquality/src/test/kotlin/gradlebuild/testcleanup/TestFilesCleanupServiceTest.kt

            assertEquals(TaskOutcome.FAILED, result.task(":failed-test-with-leftover:test")!!.outcome)
    
            // leftover files failed tests are reported but not counted as an exception, but cleaned up eventually
            assertEquals(1, StringUtils.countMatches(result.output, "Found non-empty test files dir"))
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Jun 14 12:35:52 UTC 2023
    - 10.6K bytes
    - Viewed (0)
  10. pilot/pkg/serviceregistry/aggregate/controller_test.go

    		mock.HelloService.Hostname: false,
    		mock.WorldService.Hostname: false,
    	}
    
    	count := 0
    	// Compare return value to ground truth
    	for _, svc := range services {
    		if counted, existed := hosts[svc.Hostname]; existed && !counted {
    			count++
    			hosts[svc.Hostname] = true
    		}
    	}
    
    	if count != len(hosts) {
    		t.Fatalf("Cluster local service map expected size %d, actual %v vs %v", count, hosts, services)
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 15 06:28:11 UTC 2024
    - 14.5K bytes
    - Viewed (0)
Back to top