Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 741 for bitPos (0.17 sec)

  1. 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)
  2. 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)
  3. src/image/jpeg/huffman.go

    			}
    			return err
    		}
    		d.bits.a = d.bits.a<<8 | uint32(c)
    		d.bits.n += 8
    		if d.bits.m == 0 {
    			d.bits.m = 1 << 7
    		} else {
    			d.bits.m <<= 8
    		}
    		if d.bits.n >= n {
    			break
    		}
    	}
    	return nil
    }
    
    // receiveExtend is the composition of RECEIVE and EXTEND, specified in section
    // F.2.2.1.
    func (d *decoder) receiveExtend(t uint8) (int32, error) {
    	if d.bits.n < int32(t) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 11 17:08:05 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  4. src/compress/bzip2/bit_reader.go

    	// least-significant places and masks off anything above.
    	n = (br.n >> (br.bits - bits)) & ((1 << bits) - 1)
    	br.bits -= bits
    	return
    }
    
    func (br *bitReader) ReadBits(bits uint) (n int) {
    	n64 := br.ReadBits64(bits)
    	return int(n64)
    }
    
    func (br *bitReader) ReadBit() bool {
    	n := br.ReadBits(1)
    	return n != 0
    }
    
    func (br *bitReader) Err() error {
    	return br.err
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 13 23:20:03 UTC 2023
    - 2K bytes
    - Viewed (0)
  5. src/math/big/bits_test.go

    	var p Bits
    	for _, x := range x {
    		for _, y := range y {
    			p = append(p, x+y)
    		}
    	}
    	return p
    }
    
    func TestMulBits(t *testing.T) {
    	for _, test := range []struct {
    		x, y, want Bits
    	}{
    		{nil, nil, nil},
    		{Bits{}, Bits{}, nil},
    		{Bits{0}, Bits{0}, Bits{0}},
    		{Bits{0}, Bits{1}, Bits{1}},
    		{Bits{1}, Bits{1, 2, 3}, Bits{2, 3, 4}},
    		{Bits{-1}, Bits{1}, Bits{0}},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  6. src/crypto/md5/md5block.go

    		d = a + bits.RotateLeft32((a^b^c)+d+x4+0x4bdecfa9, 11)
    		c = d + bits.RotateLeft32((d^a^b)+c+x7+0xf6bb4b60, 16)
    		b = c + bits.RotateLeft32((c^d^a)+b+xa+0xbebfbc70, 23)
    		a = b + bits.RotateLeft32((b^c^d)+a+xd+0x289b7ec6, 4)
    		d = a + bits.RotateLeft32((a^b^c)+d+x0+0xeaa127fa, 11)
    		c = d + bits.RotateLeft32((d^a^b)+c+x3+0xd4ef3085, 16)
    		b = c + bits.RotateLeft32((c^d^a)+b+x6+0x04881d05, 23)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 18:57:38 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  7. test/inline_math_bits_rotate.go

    // Test that inlining of math/bits.RotateLeft* treats those calls as intrinsics.
    
    package p
    
    import "math/bits"
    
    var (
    	x8  uint8
    	x16 uint16
    	x32 uint32
    	x64 uint64
    	x   uint
    )
    
    func f() { // ERROR "can inline f"
    	x8 = bits.RotateLeft8(x8, 1)
    	x16 = bits.RotateLeft16(x16, 1)
    	x32 = bits.RotateLeft32(x32, 1)
    	x64 = bits.RotateLeft64(x64, 1)
    	x = bits.RotateLeft(x, 1)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:25 UTC 2023
    - 571 bytes
    - Viewed (0)
  8. cmd/xl-storage-format-v1.go

    	ModTime time.Time `json:"modTime"` // ModTime of the object `xl.meta`.
    	Name    string    `json:"name"`
    	Dir     bool      `json:"dir"`
    	Mode    uint32    `json:"mode"`
    }
    
    // ErasureInfo holds erasure coding and bitrot related information.
    type ErasureInfo struct {
    	// Algorithm is the string representation of erasure-coding-algorithm
    	Algorithm string `json:"algorithm"`
    	// DataBlocks is the number of data blocks for erasure-coding
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Apr 04 12:04:40 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  9. 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)
  10. 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)
Back to top