Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for gbit64 (0.23 sec)

  1. src/syscall/dir_plan9.go

    		return nil, ErrShortStat
    	}
    	size, buf := gbit16(b)
    	if len(b) != int(size)+2 {
    		return nil, ErrBadStat
    	}
    	b = buf
    
    	var d Dir
    	d.Type, b = gbit16(b)
    	d.Dev, b = gbit32(b)
    	d.Qid.Type, b = gbit8(b)
    	d.Qid.Vers, b = gbit32(b)
    	d.Qid.Path, b = gbit64(b)
    	d.Mode, b = gbit32(b)
    	d.Atime, b = gbit32(b)
    	d.Mtime, b = gbit32(b)
    
    	n, b := gbit64(b)
    	d.Length = int64(n)
    
    	var ok bool
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 19:32:38 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  2. src/runtime/env_plan9.go

    		return
    	}
    	entryLen, buf := gbit16(buf)
    	if entryLen > len(buf) {
    		return
    	}
    	n, b := gbit16(buf[nameOffset:])
    	if n > len(b) {
    		return
    	}
    	name = b[:n]
    	rest = buf[entryLen:]
    	return
    }
    
    // gbit16 reads a 16-bit little-endian binary number from b and returns it
    // with the remaining slice of b.
    //
    //go:nosplit
    func gbit16(b []byte) (int, []byte) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 26 02:39:39 UTC 2022
    - 3K bytes
    - Viewed (0)
  3. 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)
    	s.c = 0
    	s.i = 0
    	s.n = chunk
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 21:47:29 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  4. src/runtime/rand.go

    func mrandinit(mp *m) {
    	var seed [4]uint64
    	for i := range seed {
    		seed[i] = bootstrapRand()
    	}
    	bootstrapRandReseed() // erase key we just extracted
    	mp.chacha8.Init64(seed)
    	mp.cheaprand = rand()
    }
    
    // randn is like rand() % n but faster.
    // Do not change signature: used via linkname from other packages.
    //
    //go:nosplit
    //go:linkname randn
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 31 14:32:47 UTC 2024
    - 8K bytes
    - Viewed (0)
Back to top