Search Options

Results per page
Sort
Preferred Languages
Advance

Results 461 - 470 of 2,732 for rint (0.02 sec)

  1. src/test/java/jcifs/internal/smb2/ioctl/ValidateNegotiateInfoRequestTest.java

    class ValidateNegotiateInfoRequestTest {
    
        private static final int DEFAULT_CAPABILITIES = 0x12345678;
        private static final int DEFAULT_SECURITY_MODE = 0x0003;
        private byte[] defaultClientGuid;
        private int[] defaultDialects;
    
        @BeforeEach
        void setUp() {
            // Initialize default GUID (16 bytes)
            defaultClientGuid = new byte[16];
            for (int i = 0; i < 16; i++) {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.7K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/primitives/UnsignedLongs.java

        static final int[] maxValueMods = new int[Character.MAX_RADIX + 1];
        static final int[] maxSafeDigits = new int[Character.MAX_RADIX + 1];
    
        static {
          BigInteger overflow = BigInteger.ONE.shiftLeft(64);
          for (int i = Character.MIN_RADIX; i <= Character.MAX_RADIX; i++) {
            maxValueDivs[i] = divide(MAX_VALUE, i);
            maxValueMods[i] = (int) remainder(MAX_VALUE, i);
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 17.8K bytes
    - Viewed (0)
  3. src/main/java/jcifs/internal/smb2/info/Smb2QueryInfoRequest.java

            final int start = dstIndex;
    
            SMBUtil.writeInt2(41, dst, dstIndex);
            dst[dstIndex + 2] = this.infoType;
            dst[dstIndex + 3] = this.fileInfoClass;
            dstIndex += 4;
    
            SMBUtil.writeInt4(this.outputBufferLength, dst, dstIndex);
            dstIndex += 4;
            final int inBufferOffsetOffset = dstIndex;
            dstIndex += 4;
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 6.4K bytes
    - Viewed (0)
  4. src/main/java/jcifs/dcerpc/ndr/NdrBuffer.java

         *
         * @param boundary the alignment boundary
         * @return the number of bytes added for alignment
         */
        public int align(final int boundary) {
            final int m = boundary - 1;
            final int i = this.index - this.start;
            final int n = (i + m & ~m) - i;
            advance(n);
            return n;
        }
    
        /**
         * Encodes a small integer (1 byte) in NDR format.
         *
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 10.7K bytes
    - Viewed (0)
  5. src/test/java/jcifs/dcerpc/ndr/NdrLongTest.java

            // Test case 3: Zero value
            int zeroValue = 0;
            NdrLong ndrLongZero = new NdrLong(zeroValue);
            assertEquals(zeroValue, ndrLongZero.value, "Constructor should correctly initialize with zero.");
    
            // Test case 4: Max int value
            int maxIntValue = Integer.MAX_VALUE;
            NdrLong ndrLongMax = new NdrLong(maxIntValue);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 3.2K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/smb2/notify/Smb2ChangeNotifyRequestTest.java

        @DisplayName("Should calculate correct size")
        void testSize() {
            // When
            int size = request.size();
    
            // Then
            // Size should be aligned to 8 bytes: SMB2_HEADER_LENGTH + 32
            int expectedSize = Smb2Constants.SMB2_HEADER_LENGTH + 32;
            // The size8 method aligns to 8-byte boundary
            int alignedSize = (expectedSize + 7) & ~7;
            assertEquals(alignedSize, size);
        }
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.1K bytes
    - Viewed (0)
  7. android/guava-tests/benchmark/com/google/common/math/QuantilesBenchmark.java

      }
    
      @Benchmark
      double percentile90(int reps) {
        double dummy = 0.0;
        for (int i = 0; i < reps; i++) {
          dummy += algorithm.singleQuantile(90, 100, dataset(i));
        }
        return dummy;
      }
    
      @Benchmark
      double percentile99(int reps) {
        double dummy = 0.0;
        for (int i = 0; i < reps; i++) {
          dummy += algorithm.singleQuantile(99, 100, dataset(i));
        }
        return dummy;
      }
    
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Wed May 14 19:40:47 UTC 2025
    - 3.2K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/core/collection/ArrayMap.java

            if (size != e.size) {
                return false;
            }
            for (int i = 0; i < size; i++) {
                if (!listTable[i].equals(e.listTable[i])) {
                    return false;
                }
            }
            return true;
        }
    
        @Override
        public int hashCode() {
            int h = 0;
            for (int i = 0; i < size; i++) {
                h += listTable[i].hashCode();
            }
    Registered: Sat Dec 20 08:55:33 UTC 2025
    - Last Modified: Sat Nov 22 11:21:59 UTC 2025
    - 20.1K bytes
    - Viewed (0)
  9. src/test/java/org/codelibs/core/collection/ArrayUtilTest.java

        public void testAddAll_int() throws Exception {
            final int[] array = new int[] { 111 };
            final int[] newArray = ArrayUtil.add(array, 222);
            assertThat(newArray.length, is(2));
            assertThat(newArray[0], is(111));
            assertThat(newArray[1], is(222));
    
            final int[] emptyArray = new int[0];
            assertThat(ArrayUtil.addAll((int[]) null, (int[]) null), is(nullValue()));
    Registered: Sat Dec 20 08:55:33 UTC 2025
    - Last Modified: Fri Jun 20 13:40:57 UTC 2025
    - 10.6K bytes
    - Viewed (0)
  10. src/test/java/jcifs/internal/fscc/FileInternalInfoTest.java

            int dstIndex = 5; // Start at offset 5
            int bytesEncoded = fileInternalInfo.encode(destinationBuffer, dstIndex);
    
            // Verify
            assertEquals(8, bytesEncoded);
            assertEquals(expectedIndexNumber, SMBUtil.readInt8(destinationBuffer, dstIndex));
    
            // Verify surrounding bytes are untouched
            for (int i = 0; i < dstIndex; i++) {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.1K bytes
    - Viewed (0)
Back to top