Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 37 for shift (0.18 sec)

  1. okhttp-tls/src/main/kotlin/okhttp3/tls/internal/der/DerWriter.kt

        val sink = sink()
        val bitCount = 64 - java.lang.Long.numberOfLeadingZeros(v)
        val byteCount = (bitCount + 6) / 7
        for (shift in (byteCount - 1) * 7 downTo 0 step 7) {
          val lastBit = if (shift == 0) 0 else 0b1000_0000
          sink.writeByte(((v shr shift) and 0b0111_1111).toInt() or lastBit)
        }
      }
    
      override fun toString(): String = path.joinToString(separator = " / ")
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 5.7K bytes
    - Viewed (0)
  2. 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)
  3. src/cmd/asm/internal/asm/expr_test.go

    	{"3%0", "modulo by zero"},
    	{"(1<<63)%0", "modulo of value with high bit set"},
    	{"3<<-4", "negative left shift count"},
    	{"3<<(1<<63)", "negative left shift count"},
    	{"3>>-4", "negative right shift count"},
    	{"3>>(1<<63)", "negative right shift count"},
    	{"(1<<63)>>2", "right shift of value with high bit set"},
    	{"(1<<62)>>2", ""},
    	{`'\x80'`, "illegal UTF-8 encoding for character constant"},
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Aug 29 07:48:38 GMT 2023
    - 3.2K bytes
    - Viewed (0)
  4. src/cmd/asm/internal/lex/lex.go

    	// a rune/ScanToken value for them - ugly but simple.
    	LSH          ScanToken = -1000 - iota // << Left shift.
    	RSH                                   // >> Logical right shift.
    	ARR                                   // -> Used on ARM for shift type 3, arithmetic right shift.
    	ROT                                   // @> Used on ARM for shift type 4, rotate right.
    	Include                               // included file started here
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Aug 29 18:31:05 GMT 2023
    - 4.1K bytes
    - Viewed (0)
  5. apache-maven/src/assembly/shared/init.cmd

    @REM POM location, if supplied.
    
    set FILE_ARG=
    :arg_loop
    if "%~1" == "-f" (
      set "FILE_ARG=%~2"
      shift
      goto process_file_arg
    )
    if "%~1" == "--file" (
      set "FILE_ARG=%~2"
      shift
      goto process_file_arg
    )
    @REM If none of the above, skip the argument
    shift
    if not "%~1" == "" (
      goto arg_loop
    ) else (
      goto findBaseDir
    )
    
    :process_file_arg
    if "%FILE_ARG%" == "" (
    Batch File
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Fri Dec 16 21:35:28 GMT 2022
    - 2.1K bytes
    - Viewed (0)
  6. src/main/assemblies/files/fess

    do
        case $1 in
          --help) ARGV="$ARGV -h"; shift;;
          --*=*) properties="$properties -Dfess.${1#--}"
               shift 1
               ;;
          --*) [ $# -le 1 ] && {
                    echo "Option requires an argument: '$1'."
                    shift
                    continue
                }
               properties="$properties -Dfess.${1#--}=$2"
               shift 2
               ;;
          *) ARGV="$ARGV $1" ; shift
    Shell Script
    - Registered: Mon Apr 29 08:04:11 GMT 2024
    - Last Modified: Sun Jan 15 06:32:15 GMT 2023
    - 5.4K bytes
    - Viewed (0)
  7. 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)
  8. 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)
  9. okhttp/src/main/kotlin/okhttp3/internal/http2/Huffman.kt

          if (child == null) {
            child = Node()
            children[childIndex] = child
          }
          node = child
        }
    
        val shift = 8 - accumulatorBitCount
        val start = (code shl shift) and 0xff
        val end = 1 shl shift
        node.children!!.fill(terminal, start, start + end)
      }
    
      private class Node {
        /** Null if terminal. */
        val children: Array<Node?>?
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 8.3K bytes
    - Viewed (0)
  10. 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)
Back to top