Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 26 for shift (0.21 sec)

  1. android/guava/src/com/google/common/hash/Murmur3_32HashFunction.java

            }
          }
    
          long buffer = 0;
          int shift = 0;
          for (; i < utf16Length; i++) {
            char c = input.charAt(i);
            if (c < 0x80) {
              buffer |= (long) c << shift;
              shift += 8;
              len++;
            } else if (c < 0x800) {
              buffer |= charToTwoUtf8Bytes(c) << shift;
              shift += 16;
              len += 2;
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Jun 15 20:59:00 GMT 2022
    - 11.9K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/math/DoubleUtils.java

         * top SIGNIFICAND_BITS + 1.
         *
         * It helps to consider the real number signif = absX * 2^(SIGNIFICAND_BITS - exponent).
         */
        int shift = exponent - SIGNIFICAND_BITS - 1;
        long twiceSignifFloor = absX.shiftRight(shift).longValue();
        long signifFloor = twiceSignifFloor >> 1;
        signifFloor &= SIGNIFICAND_MASK; // remove the implied bit
    
        /*
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Apr 28 15:37:52 GMT 2021
    - 5.1K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/fess/filter/EncodingFilter.java

            encoding = config.getInitParameter(LastaPrepareFilter.ENCODING_KEY);
            if (encoding == null) {
                encoding = LastaPrepareFilter.DEFAULT_ENCODING;
            }
    
            // ex. sjis:Shift_JIS,eucjp:EUC-JP
            final String value = config.getInitParameter(ENCODING_MAP);
            if (StringUtil.isNotBlank(value)) {
                final String[] encodingPairs = value.split(",");
    Java
    - Registered: Mon Apr 29 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 6.9K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/math/BigIntegerMath.java

          sqrt0 = sqrtApproxWithDoubles(x);
        } else {
          int shift = (log2 - DoubleUtils.SIGNIFICAND_BITS) & ~1; // even!
          /*
           * We have that x / 2^shift < 2^54. Our initial approximation to sqrtFloor(x) will be
           * 2^(shift/2) * sqrtApproxWithDoubles(x / 2^shift).
           */
          sqrt0 = sqrtApproxWithDoubles(x.shiftRight(shift)).shiftLeft(shift >> 1);
        }
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 07 17:50:39 GMT 2024
    - 18.9K bytes
    - Viewed (0)
  5. src/main/java/jcifs/pac/PacDataInputStream.java

            this.size = in.available();
        }
    
    
        public void align ( int mask ) throws IOException {
            int position = this.size - this.dis.available();
            int shift = position & mask - 1;
            if ( mask != 0 && shift != 0 )
                this.dis.skip(mask - shift);
        }
    
    
        public int available () throws IOException {
            return this.dis.available();
        }
    
    
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sat Jul 21 21:19:58 GMT 2018
    - 5.1K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb/SID.java

                ret += Hexdump.toHexString(this.identifier_authority, 0, 6);
            }
            else {
                long shift = 0;
                long id = 0;
                for ( int i = 5; i > 1; i-- ) {
                    id += ( this.identifier_authority[ i ] & 0xFFL ) << shift;
                    shift += 8;
                }
                ret += id;
            }
    
            for ( int i = 0; i < this.sub_authority_count; i++ )
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sun Jul 01 13:12:10 GMT 2018
    - 14.9K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/primitives/UnsignedLongs.java

          if ((radix & (radix - 1)) == 0) {
            // Radix is a power of two so we can avoid division.
            int shift = Integer.numberOfTrailingZeros(radix);
            int mask = radix - 1;
            do {
              buf[--i] = Character.forDigit(((int) x) & mask, radix);
              x >>>= shift;
            } while (x != 0);
          } else {
            // Separate off the last digit using unsigned division. That will leave
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 17.6K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/io/ReaderInputStream.java

        // 1) array has space available on right-hand side (between limit and capacity)
        // 2) array has space available on left-hand side (before position)
        // 3) array has no space available
        //
        // In case 2 we shift the existing chars to the left, and in case 3 we create a bigger
        // array, then they both become case 1.
    
        if (availableCapacity(charBuffer) == 0) {
          if (charBuffer.position() > 0) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Feb 28 20:13:02 GMT 2023
    - 9.3K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/hash/LittleEndianByteArray.java

        long result = 0;
        // Due to the way we shift, we can stop iterating once we've run out of data, the rest
        // of the result already being filled with zeros.
    
        // This loop is critical to performance, so please check HashBenchmark if altering it.
        int limit = Math.min(length, 8);
        for (int i = 0; i < limit; i++) {
          // Shift value left while iterating logically through the array.
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 22 17:40:56 GMT 2024
    - 9.7K bytes
    - Viewed (0)
  10. src/test/java/org/codelibs/core/io/CopyUtilTest.java

         * @throws Exception
         */
        @Test
        public void testFileToFile_Encoding() throws Exception {
            int result = copy(inputFile, "UTF-8", outputFile, "Shift_JIS");
            assertThat(result, is(urlString.length()));
    
            result = copy(outputFile, "Shift_JIS", writer);
            assertThat(writer.toString(), is(urlString));
        }
    
        /**
         * @throws Exception
         */
        @Test
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 4.6K bytes
    - Viewed (0)
Back to top