Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 876 for nbits (0.04 sec)

  1. src/vendor/golang.org/x/crypto/internal/poly1305/sum_generic.go

    }
    
    // uint128 holds a 128-bit number as two 64-bit limbs, for use with the
    // bits.Mul64 and bits.Add64 intrinsics.
    type uint128 struct {
    	lo, hi uint64
    }
    
    func mul64(a, b uint64) uint128 {
    	hi, lo := bits.Mul64(a, b)
    	return uint128{lo, hi}
    }
    
    func add128(a, b uint128) uint128 {
    	lo, c := bits.Add64(a.lo, b.lo, 0)
    	hi, c := bits.Add64(a.hi, b.hi, c)
    	if c != 0 {
    		panic("poly1305: unexpected overflow")
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jan 22 19:00:13 UTC 2024
    - 9.6K bytes
    - Viewed (0)
  2. src/crypto/sha512/sha512block.go

    			v1 := w[i-2]
    			t1 := bits.RotateLeft64(v1, -19) ^ bits.RotateLeft64(v1, -61) ^ (v1 >> 6)
    			v2 := w[i-15]
    			t2 := bits.RotateLeft64(v2, -1) ^ bits.RotateLeft64(v2, -8) ^ (v2 >> 7)
    
    			w[i] = t1 + w[i-7] + t2 + w[i-16]
    		}
    
    		a, b, c, d, e, f, g, h := h0, h1, h2, h3, h4, h5, h6, h7
    
    		for i := 0; i < 80; i++ {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 03 21:17:08 UTC 2023
    - 3.3K bytes
    - Viewed (0)
  3. src/crypto/rand/util.go

    // Prime will return error for any error returned by [rand.Read] or if bits < 2.
    func Prime(rand io.Reader, bits int) (*big.Int, error) {
    	if bits < 2 {
    		return nil, errors.New("crypto/rand: prime size must be at least 2-bit")
    	}
    
    	randutil.MaybeReadByte(rand)
    
    	b := uint(bits % 8)
    	if b == 0 {
    		b = 8
    	}
    
    	bytes := make([]byte, (bits+7)/8)
    	p := new(big.Int)
    
    	for {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 13 17:09:47 UTC 2023
    - 2.4K bytes
    - Viewed (0)
  4. src/crypto/sha256/sha256block.go

    			v1 := w[i-2]
    			t1 := (bits.RotateLeft32(v1, -17)) ^ (bits.RotateLeft32(v1, -19)) ^ (v1 >> 10)
    			v2 := w[i-15]
    			t2 := (bits.RotateLeft32(v2, -7)) ^ (bits.RotateLeft32(v2, -18)) ^ (v2 >> 3)
    			w[i] = t1 + w[i-7] + t2 + w[i-16]
    		}
    
    		a, b, c, d, e, f, g, h := h0, h1, h2, h3, h4, h5, h6, h7
    
    		for i := 0; i < 64; i++ {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 03 21:21:42 UTC 2023
    - 2.4K bytes
    - Viewed (0)
  5. guava/src/com/google/common/hash/ChecksumHashFunction.java

      private final int bits;
      private final String toString;
    
      ChecksumHashFunction(
          ImmutableSupplier<? extends Checksum> checksumSupplier, int bits, String toString) {
        this.checksumSupplier = checkNotNull(checksumSupplier);
        checkArgument(bits == 32 || bits == 64, "bits (%s) must be either 32 or 64", bits);
        this.bits = bits;
        this.toString = checkNotNull(toString);
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 22 22:01:56 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  6. src/compress/flate/huffman_code.go

    	code := uint16(0)
    	for n, bits := range bitCount {
    		code <<= 1
    		if n == 0 || bits == 0 {
    			continue
    		}
    		// The literals list[len(list)-bits] .. list[len(list)-bits]
    		// are encoded using "bits" bits, and get the values
    		// code, code + 1, ....  The code values are
    		// assigned in literal order (not frequency order).
    		chunk := list[len(list)-int(bits):]
    
    		h.lns.sort(chunk)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 18 17:59:44 UTC 2022
    - 9.7K bytes
    - Viewed (0)
  7. 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)
  8. src/cmd/vendor/golang.org/x/sys/unix/fdset.go

    // Set adds fd to the set fds.
    func (fds *FdSet) Set(fd int) {
    	fds.Bits[fd/NFDBITS] |= (1 << (uintptr(fd) % NFDBITS))
    }
    
    // Clear removes fd from the set fds.
    func (fds *FdSet) Clear(fd int) {
    	fds.Bits[fd/NFDBITS] &^= (1 << (uintptr(fd) % NFDBITS))
    }
    
    // IsSet returns whether fd is in the set fds.
    func (fds *FdSet) IsSet(fd int) bool {
    	return fds.Bits[fd/NFDBITS]&(1<<(uintptr(fd)%NFDBITS)) != 0
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 781 bytes
    - Viewed (0)
  9. src/internal/zstd/huff.go

    package zstd
    
    import (
    	"io"
    	"math/bits"
    )
    
    // maxHuffmanBits is the largest possible Huffman table bits.
    const maxHuffmanBits = 11
    
    // readHuff reads Huffman table from data starting at off into table.
    // Each entry in a Huffman table is a pair of bytes.
    // The high byte is the encoded value. The low byte is the number
    // of bits used to encode that value. We index into the table
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 18 20:34:13 UTC 2023
    - 4.7K bytes
    - Viewed (0)
  10. 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)
Back to top