Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 42 for BeUint64 (0.16 sec)

  1. src/internal/chacha8rand/chacha8.go

    }
    
    // Init seeds the State with the given seed value.
    func (s *State) Init(seed [32]byte) {
    	s.Init64([4]uint64{
    		byteorder.LeUint64(seed[0*8:]),
    		byteorder.LeUint64(seed[1*8:]),
    		byteorder.LeUint64(seed[2*8:]),
    		byteorder.LeUint64(seed[3*8:]),
    	})
    }
    
    // Init64 seeds the state with the given seed value.
    func (s *State) Init64(seed [4]uint64) {
    	s.seed = seed
    	block(&s.seed, &s.buf, 0)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 21:47:29 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  2. src/os/dir_unix.go

    	case 8:
    		return uint64(byteorder.BeUint64(b))
    	default:
    		panic("syscall: readInt with unsupported size")
    	}
    }
    
    func readIntLE(b []byte, size uintptr) uint64 {
    	switch size {
    	case 1:
    		return uint64(b[0])
    	case 2:
    		return uint64(byteorder.LeUint16(b))
    	case 4:
    		return uint64(byteorder.LeUint32(b))
    	case 8:
    		return uint64(byteorder.LeUint64(b))
    	default:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 20:11:45 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  3. src/crypto/md5/md5.go

    	b, d.s[3] = consumeUint32(b)
    	b = b[copy(d.x[:], b):]
    	b, d.len = consumeUint64(b)
    	d.nx = int(d.len % BlockSize)
    	return nil
    }
    
    func consumeUint64(b []byte) ([]byte, uint64) {
    	return b[8:], byteorder.BeUint64(b[0:8])
    }
    
    func consumeUint32(b []byte) ([]byte, uint32) {
    	return b[4:], byteorder.BeUint32(b[0:4])
    }
    
    // New returns a new hash.Hash computing the MD5 checksum. The Hash also
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 18:57:38 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  4. src/cmd/internal/test2json/testdata/framefuzz.json

    {"Action":"output","Test":"TestInlining","Output":"    inlining_test.go:102: not in expected set, but also inlinable: \"beUint64\"\n"}
    {"Action":"output","Test":"TestInlining","Output":"    inlining_test.go:102: not in expected set, but also inlinable: \"appendHexPad\"\n"}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 09 17:33:07 UTC 2022
    - 6.3K bytes
    - Viewed (0)
  5. src/crypto/sha256/sha256.go

    	b, d.h[7] = consumeUint32(b)
    	b = b[copy(d.x[:], b):]
    	b, d.len = consumeUint64(b)
    	d.nx = int(d.len % chunk)
    	return nil
    }
    
    func consumeUint64(b []byte) ([]byte, uint64) {
    	return b[8:], byteorder.BeUint64(b)
    }
    
    func consumeUint32(b []byte) ([]byte, uint32) {
    	return b[4:], byteorder.BeUint32(b)
    }
    
    func (d *digest) Reset() {
    	if !d.is224 {
    		d.h[0] = init0
    		d.h[1] = init1
    		d.h[2] = init2
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 16:50:58 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  6. src/crypto/sha1/sha1.go

    	b, d.h[4] = consumeUint32(b)
    	b = b[copy(d.x[:], b):]
    	b, d.len = consumeUint64(b)
    	d.nx = int(d.len % chunk)
    	return nil
    }
    
    func consumeUint64(b []byte) ([]byte, uint64) {
    	return b[8:], byteorder.BeUint64(b)
    }
    
    func consumeUint32(b []byte) ([]byte, uint32) {
    	return b[4:], byteorder.BeUint32(b)
    }
    
    func (d *digest) Reset() {
    	d.h[0] = init0
    	d.h[1] = init1
    	d.h[2] = init2
    	d.h[3] = init3
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 16:50:58 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  7. src/crypto/sha512/sha512.go

    	b, d.h[7] = consumeUint64(b)
    	b = b[copy(d.x[:], b):]
    	b, d.len = consumeUint64(b)
    	d.nx = int(d.len % chunk)
    	return nil
    }
    
    func consumeUint64(b []byte) ([]byte, uint64) {
    	return b[8:], byteorder.BeUint64(b)
    }
    
    // New returns a new hash.Hash computing the SHA-512 checksum.
    func New() hash.Hash {
    	if boring.Enabled {
    		return boring.NewSHA512()
    	}
    	d := &digest{function: crypto.SHA512}
    	d.Reset()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 16:50:58 UTC 2024
    - 9.2K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/ssa/softfloat.go

    					v.Op = OpCopy
    					v.Type = f.Config.Types.UInt64
    				}
    				newInt64 = newInt64 || v.Type.Size() == 8
    			} else if (v.Op == OpStore || v.Op == OpZero || v.Op == OpMove) && v.Aux.(*types.Type).IsFloat() {
    				switch size := v.Aux.(*types.Type).Size(); size {
    				case 4:
    					v.Aux = f.Config.Types.UInt32
    				case 8:
    					v.Aux = f.Config.Types.UInt64
    					newInt64 = true
    				default:
    					v.Fatalf("bad float type with size %d", size)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 03 16:14:24 UTC 2021
    - 2K bytes
    - Viewed (0)
  9. misc/cgo/gmp/pi.go

    	return tmp1.Int64()
    }
    
    func nextTerm(k int64) {
    	y2 := k*2 + 1
    	accum.Add(accum, tmp1.Lsh(numer, 1))
    	accum.Mul(accum, tmp1.SetInt64(y2))
    	numer.Mul(numer, tmp1.SetInt64(k))
    	denom.Mul(denom, tmp1.SetInt64(y2))
    }
    
    func eliminateDigit(d int64) {
    	accum.Sub(accum, tmp1.Mul(denom, tmp1.SetInt64(d)))
    	accum.Mul(accum, ten)
    	numer.Mul(numer, ten)
    }
    
    func main() {
    	i := 0
    	k := int64(0)
    	for {
    		d := int64(-1)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 10 22:32:35 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/test/testdata/gen/cmpConstGen.go

    	case "uint8":
    		max = max.SetUint64(maxU8)
    	case "int64":
    		min = min.SetInt64(minI64)
    		max = max.SetInt64(maxI64)
    	case "int32":
    		min = min.SetInt64(minI32)
    		max = max.SetInt64(maxI32)
    	case "int16":
    		min = min.SetInt64(minI16)
    		max = max.SetInt64(maxI16)
    	case "int8":
    		min = min.SetInt64(minI8)
    		max = max.SetInt64(maxI8)
    	default:
    		panic("unexpected type")
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 20 02:13:02 UTC 2022
    - 6.4K bytes
    - Viewed (0)
Back to top