Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 21 - 30 of 38 for arithmetic (0.07 seconds)

  1. guava-tests/test/com/google/common/math/StatsTesting.java

      static final double INTEGER_MANY_VALUES_MAX = 555555.0;
      static final double INTEGER_MANY_VALUES_MIN = -4444.0;
    
      // Integers which will overflow if summed (using integer arithmetic):
      static final int[] LARGE_INTEGER_VALUES = {Integer.MAX_VALUE, Integer.MAX_VALUE / 2};
      static final double LARGE_INTEGER_VALUES_MEAN =
          BigInteger.valueOf(Integer.MAX_VALUE)
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Mar 03 05:21:26 GMT 2026
    - 24K bytes
    - Click Count (0)
  2. android/guava/src/com/google/common/primitives/UnsignedInteger.java

    import com.google.common.annotations.J2ktIncompatible;
    import java.math.BigInteger;
    import org.jspecify.annotations.Nullable;
    
    /**
     * A wrapper class for unsigned {@code int} values, supporting arithmetic operations.
     *
     * <p>In some cases, when speed is more important than code readability, it may be faster simply to
     * treat primitive {@code int} values as unsigned, using the methods from {@link UnsignedInts}.
     *
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 8.3K bytes
    - Click Count (0)
  3. android/guava/src/com/google/common/primitives/UnsignedLong.java

    import com.google.errorprone.annotations.CanIgnoreReturnValue;
    import java.math.BigInteger;
    import org.jspecify.annotations.Nullable;
    
    /**
     * A wrapper class for unsigned {@code long} values, supporting arithmetic operations.
     *
     * <p>In some cases, when speed is more important than code readability, it may be faster simply to
     * treat primitive {@code long} values as unsigned, using the methods from {@link UnsignedLongs}.
     *
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Jun 04 13:03:16 GMT 2025
    - 8.8K bytes
    - Click Count (0)
  4. android/guava/src/com/google/common/math/Quantiles.java

          long numerator = (long) index * (dataset.length - 1);
          // Since scale is a positive int, index is in [0, scale], and (dataset.length - 1) is a
          // non-negative int, we can do long-arithmetic on index * (dataset.length - 1) / scale to get
          // a rounded ratio and a remainder which can be expressed as ints, without risk of overflow:
          int quotient = (int) LongMath.divide(numerator, scale, RoundingMode.DOWN);
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 23 21:06:42 GMT 2026
    - 30.1K bytes
    - Click Count (0)
  5. android/guava/src/com/google/common/math/PairedStatsAccumulator.java

        // We extend the recursive expression for the one-variable case at Art of Computer Programming
        // vol. 2, Knuth, 4.2.2, (16) to the two-variable case. We have two value series x_i and y_i.
        // We define the arithmetic means X_n = 1/n \sum_{i=1}^n x_i, and Y_n = 1/n \sum_{i=1}^n y_i.
        // We also define the sum of the products of the differences from the means
        //           C_n = \sum_{i=1}^n x_i y_i - n X_n Y_n
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Sep 08 18:35:13 GMT 2025
    - 10.4K bytes
    - Click Count (0)
  6. src/test/java/jcifs/internal/fscc/SmbInfoAllocationTest.java

            offset += 4;
            SMBUtil.writeInt2(bytesPerSect, buffer, offset);
    
            // Decode
            smbInfoAllocation.decode(buffer, 0, buffer.length);
    
            // Verify calculations use long arithmetic to avoid overflow
            long expectedCapacity = (long) alloc * sectPerAlloc * bytesPerSect;
            assertEquals(expectedCapacity, smbInfoAllocation.getCapacity());
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 14.2K bytes
    - Click Count (0)
  7. src/test/java/jcifs/internal/fscc/FileSystemInformationTest.java

            void testLargeCapacityCalculation() throws SMBProtocolDecodingException {
                byte[] buffer = new byte[32];
                // Set large values to test 64-bit arithmetic
                buffer[0] = (byte) 0xFF;
                buffer[1] = (byte) 0xFF; // Large alloc
                buffer[24] = (byte) 0xFF; // Large sectPerAlloc
                buffer[28] = (byte) 0xFF;
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 18.1K bytes
    - Click Count (0)
  8. src/test/java/org/codelibs/fess/script/groovy/GroovyEngineTest.java

            // Division by zero
            assertNull(groovyEngine.evaluate("return 1 / 0", params));
        }
    
        // ===== Script Execution Tests =====
    
        /**
         * Test that simple arithmetic works
         */
        @Test
        public void test_evaluate_arithmetic() {
            final Map<String, Object> params = new HashMap<>();
            params.put("a", 5);
            params.put("b", 3);
    
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sun Mar 15 06:03:38 GMT 2026
    - 29.1K bytes
    - Click Count (0)
  9. doc/asm.html

    <br>
    <code>R0&gt;&gt;16</code>
    <br>
    <code>R0&lt;&lt;16</code>
    <br>
    <code>R0@&gt;16</code>:
    For <code>&lt;&lt;</code>, left shift <code>R0</code> by 16 bits.
    The other codes are <code>-&gt;</code> (arithmetic right shift),
    <code>&gt;&gt;</code> (logical right shift), and
    <code>@&gt;</code> (rotate right).
    </li>
    
    <li>
    <code>R0-&gt;R1</code>
    <br>
    <code>R0&gt;&gt;R1</code>
    <br>
    Created: Tue Apr 07 11:13:11 GMT 2026
    - Last Modified: Fri Nov 14 19:09:46 GMT 2025
    - 36.5K bytes
    - Click Count (0)
  10. src/cmd/asm/internal/asm/testdata/arm.s

    	BFC	$29, $2, R8                              // 1f81dee7
    	BFI	$29, $2, R8                              // 1881dee7
    	BFI	$16, $8, R1, R2 // BFI $16, R1, $8, R2   // 1124d7e7
    
    // synthetic arithmetic
    	ADD	$0xffffffaa, R2, R3 // ADD $4294967210, R2, R3   // 55b0e0e30b3082e0
    	ADD	$0xffffff55, R5     // ADD $4294967125, R5       // aab0e0e30b5085e0
    	ADD.S	$0xffffffab, R2, R3 // ADD.S $4294967211, R2, R3 // 54b0e0e30b3092e0
    Created: Tue Apr 07 11:13:11 GMT 2026
    - Last Modified: Fri Dec 15 20:51:01 GMT 2023
    - 69K bytes
    - Click Count (0)
Back to Top