Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 357 for bitPos (0.33 sec)

  1. src/math/bits/bits.go

    // To rotate x right by k bits, call RotateLeft8(x, -k).
    //
    // This function's execution time does not depend on the inputs.
    func RotateLeft8(x uint8, k int) uint8 {
    	const n = 8
    	s := uint(k) & (n - 1)
    	return x<<s | x>>(n-s)
    }
    
    // RotateLeft16 returns the value of x rotated left by (k mod 16) bits.
    // To rotate x right by k bits, call RotateLeft16(x, -k).
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 11:59:09 UTC 2023
    - 17.9K bytes
    - Viewed (0)
  2. src/vendor/golang.org/x/crypto/sha3/keccakf.go

    		bc4 = bits.RotateLeft64(t, 18)
    		t = a[1] ^ d1
    		bc0 = bits.RotateLeft64(t, 1)
    		t = a[7] ^ d2
    		bc1 = bits.RotateLeft64(t, 6)
    		t = a[13] ^ d3
    		bc2 = bits.RotateLeft64(t, 25)
    		t = a[19] ^ d4
    		bc3 = bits.RotateLeft64(t, 8)
    		a[20] = bc0 ^ (bc2 &^ bc1)
    		a[1] = bc1 ^ (bc3 &^ bc2)
    		a[7] = bc2 ^ (bc4 &^ bc3)
    		a[13] = bc3 ^ (bc0 &^ bc4)
    		a[19] = bc4 ^ (bc1 &^ bc0)
    
    		t = a[5] ^ d0
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 10 16:37:53 UTC 2024
    - 10.3K bytes
    - Viewed (0)
  3. test/codegen/mathbits.go

    	// ppc64x: -"ADDC", "ADDE", -"ADDZE"
    	r[2], c = bits.Add64(p[2], p[2], c)
    }
    
    func Add64MSaveC(p, q, r, c *[2]uint64) {
    	// ppc64x: "ADDC\tR", "ADDZE"
    	r[0], c[0] = bits.Add64(p[0], q[0], 0)
    	// ppc64x: "ADDC\t[$]-1", "ADDE", "ADDZE"
    	r[1], c[1] = bits.Add64(p[1], q[1], c[0])
    }
    
    func Add64PanicOnOverflowEQ(a, b uint64) uint64 {
    	r, c := bits.Add64(a, b, 0)
    	// s390x:"BRC\t[$]3,",-"ADDE"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 18:51:17 UTC 2024
    - 19.6K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/ssa/magic.go

    // So RotRight(x, k) == ⎣x/(2^k)⎦ <= ⎣a/(2^k)⎦
    //
    // If x does not end in k zero bits, then RotRight(x, k)
    // has some non-zero bits in the k highest bits.
    // ⎣x/(2^k)⎦ has all zeroes in the k highest bits,
    // so RotRight(x, k) > ⎣x/(2^k)⎦
    //
    // Finally, if x > a and has k trailing zero bits, then RotRight(x, k) == ⎣x/(2^k)⎦
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 26 19:58:25 UTC 2024
    - 15.8K bytes
    - Viewed (0)
  5. src/runtime/mpallocbits.go

    		b.set(i)
    		return
    	}
    	// Set bits [i, j].
    	j := i + n - 1
    	if i/64 == j/64 {
    		b[i/64] |= ((uint64(1) << n) - 1) << (i % 64)
    		return
    	}
    	_ = b[j/64]
    	// Set leading bits.
    	b[i/64] |= ^uint64(0) << (i % 64)
    	for k := i/64 + 1; k < j/64; k++ {
    		b[k] = ^uint64(0)
    	}
    	// Set trailing bits.
    	b[j/64] |= (uint64(1) << (j%64 + 1)) - 1
    }
    
    // setAll sets all the bits of b.
    func (b *pageBits) setAll() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat May 18 15:13:43 UTC 2024
    - 12.5K bytes
    - Viewed (0)
  6. src/internal/zstd/fse.go

    		nextState := next[sym]
    		next[sym]++
    
    		if nextState == 0 {
    			return r.makeError(off, "FSE state error")
    		}
    
    		highBit := 15 - bits.LeadingZeros16(nextState)
    
    		bits := tableBits - highBit
    		table[i].bits = uint8(bits)
    		table[i].base = (nextState << bits) - uint16(tableSize)
    	}
    
    	return nil
    }
    
    // fseBaselineEntry is an entry in an FSE baseline table.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 17 16:44:06 UTC 2023
    - 12.2K bytes
    - Viewed (0)
  7. guava/src/com/google/common/hash/BloomFilter.java

        /**
         * Sets {@code numHashFunctions} bits of the given bit array, by hashing a user element.
         *
         * <p>Returns whether any bits changed as a result of this operation.
         */
        <T extends @Nullable Object> boolean put(
            @ParametricNullness T object,
            Funnel<? super T> funnel,
            int numHashFunctions,
            LockFreeBitArray bits);
    
        /**
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Apr 01 16:15:01 UTC 2024
    - 26.3K bytes
    - Viewed (0)
  8. tensorflow/c/eager/dlpack.cc

      switch (dtype.code) {
        case DLDataTypeCode::kDLBool:
          if (dtype.bits != 8) {
            return tensorflow::errors::InvalidArgument(
                "Only DLPack bools of bitwidth 8 are supported, got: ", dtype.bits);
          }
          *tf_dtype = TF_DataType::TF_BOOL;
          return absl::OkStatus();
    
        case DLDataTypeCode::kDLUInt:
          switch (dtype.bits) {
            case 8:
              *tf_dtype = TF_DataType::TF_UINT8;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 15 09:49:45 UTC 2024
    - 12.8K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/hash/Hashing.java

      public static HashFunction goodFastHash(int minimumBits) {
        int bits = checkPositiveAndMakeMultipleOf32(minimumBits);
    
        if (bits == 32) {
          return Murmur3_32HashFunction.GOOD_FAST_HASH_32;
        }
        if (bits <= 128) {
          return Murmur3_128HashFunction.GOOD_FAST_HASH_128;
        }
    
        // Otherwise, join together some 128-bit murmur3s
        int hashFunctionsNeeded = (bits + 127) / 128;
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Apr 09 00:37:15 UTC 2024
    - 29.2K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/ssa/_gen/RISCV64Ops.go

    		{name: "ADDIW", argLength: 1, reg: gp11, asm: "ADDIW", aux: "Int64"},  // 32 low bits of arg0 + auxint, sign extended to 64 bits
    		{name: "NEG", argLength: 1, reg: gp11, asm: "NEG"},                    // -arg0
    		{name: "NEGW", argLength: 1, reg: gp11, asm: "NEGW"},                  // -arg0 of 32 bits, sign extended to 64 bits
    		{name: "SUB", argLength: 2, reg: gp21, asm: "SUB"},                    // arg0 - arg1
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 07 14:57:07 UTC 2024
    - 30.7K bytes
    - Viewed (0)
Back to top