Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for gbit64 (0.28 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/cmd/vendor/golang.org/x/sys/plan9/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 Mar 15 19:02:39 UTC 2021
    - 5.6K bytes
    - Viewed (0)
  3. 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)
  4. 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)
  5. test/armimm.go

    	}
    	if want, got = c64s-a, subr64s(a); got != want {
    		panic(fmt.Sprintf("subr64s(%x) = %x, want %x", a, got, want))
    	}
    	if want, got = a&^c64a, bic64(a); got != want {
    		panic(fmt.Sprintf("bic64(%x) = %x, want %x", a, got, want))
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 11 13:53:54 UTC 2017
    - 3.9K bytes
    - Viewed (0)
  6. src/math/bits/bits_test.go

    			}
    		}
    
    		x64 := uint64(m)
    		got64 := RotateLeft64(x64, int(k))
    		want64 := x64<<(k&0x3f) | x64>>(64-k&0x3f)
    		if got64 != want64 {
    			t.Fatalf("RotateLeft64(%#016x, %d) == %#016x; want %#016x", x64, k, got64, want64)
    		}
    		got64 = RotateLeft64(want64, -int(k))
    		if got64 != x64 {
    			t.Fatalf("RotateLeft64(%#016x, -%d) == %#016x; want %#016x", want64, k, got64, x64)
    		}
    		if UintSize == 64 {
    			x := uint(m)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 22 20:11:06 UTC 2020
    - 32.5K bytes
    - Viewed (0)
  7. src/strconv/atoc_test.go

    			got, err := ParseComplex(test.in, 64)
    			if !reflect.DeepEqual(err, test.err) {
    				t.Fatalf("ParseComplex(%q, 64) = %v, %v; want %v, %v", test.in, got, err, test.out, test.err)
    			}
    			got64 := complex64(got)
    			if complex128(got64) != test.out {
    				t.Fatalf("ParseComplex(%q, 64) = %v, %v; want %v, %v", test.in, got, err, test.out, test.err)
    			}
    		}
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 03 23:05:51 UTC 2020
    - 6.8K bytes
    - Viewed (0)
  8. src/syscall/exec_plan9.go

    // It returns the string as a byte slice, or nil if b is too short to contain the length or
    // the full string.
    //
    //go:nosplit
    func gstringb(b []byte) []byte {
    	if len(b) < 2 {
    		return nil
    	}
    	n, b := gbit16(b)
    	if int(n) > len(b) {
    		return nil
    	}
    	return b[:n]
    }
    
    // Offset of the name field in a 9P directory entry - see UnmarshalDir() in dir_plan9.go
    const nameOffset = 39
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 21:03:59 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  9. 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)
  10. src/cmd/cgo/out.go

    	"uint16":     {Size: 2, Align: 2, C: c("GoUint16")},
    	"int32":      {Size: 4, Align: 4, C: c("GoInt32")},
    	"uint32":     {Size: 4, Align: 4, C: c("GoUint32")},
    	"int64":      {Size: 8, Align: 8, C: c("GoInt64")},
    	"uint64":     {Size: 8, Align: 8, C: c("GoUint64")},
    	"float32":    {Size: 4, Align: 4, C: c("GoFloat32")},
    	"float64":    {Size: 8, Align: 8, C: c("GoFloat64")},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 29 16:41:10 UTC 2024
    - 59.6K bytes
    - Viewed (0)
Back to top