Search Options

Results per page
Sort
Preferred Languages
Advance

Results 111 - 120 of 266 for uint16 (0.12 sec)

  1. src/os/dir_plan9.go

    				return names, dirents, infos, &PathError{Op: "readdir", Path: file.name, Err: syscall.ErrShortStat}
    			}
    		}
    
    		// Get a record from the buffer.
    		b := d.buf[d.bufp:]
    		m := int(uint16(b[0])|uint16(b[1])<<8) + 2
    		if m < syscall.STATFIXLEN {
    			return names, dirents, infos, &PathError{Op: "readdir", Path: file.name, Err: syscall.ErrShortStat}
    		}
    
    		dir, err := syscall.UnmarshalDir(b[:m])
    		if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 15 20:52:06 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  2. src/cmd/vendor/golang.org/x/sys/unix/syscall_openbsd_amd64.go

    }
    
    func SetKevent(k *Kevent_t, fd, mode, flags int) {
    	k.Ident = uint64(fd)
    	k.Filter = int16(mode)
    	k.Flags = uint16(flags)
    }
    
    func (iov *Iovec) SetLen(length int) {
    	iov.Len = uint64(length)
    }
    
    func (msghdr *Msghdr) SetControllen(length int) {
    	msghdr.Controllen = uint32(length)
    }
    
    func (msghdr *Msghdr) SetIovlen(length int) {
    	msghdr.Iovlen = uint32(length)
    }
    
    func (cmsg *Cmsghdr) SetLen(length int) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 990 bytes
    - Viewed (0)
  3. src/cmd/vendor/golang.org/x/sys/unix/syscall_openbsd_riscv64.go

    }
    
    func SetKevent(k *Kevent_t, fd, mode, flags int) {
    	k.Ident = uint64(fd)
    	k.Filter = int16(mode)
    	k.Flags = uint16(flags)
    }
    
    func (iov *Iovec) SetLen(length int) {
    	iov.Len = uint64(length)
    }
    
    func (msghdr *Msghdr) SetControllen(length int) {
    	msghdr.Controllen = uint32(length)
    }
    
    func (msghdr *Msghdr) SetIovlen(length int) {
    	msghdr.Iovlen = uint32(length)
    }
    
    func (cmsg *Cmsghdr) SetLen(length int) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 994 bytes
    - Viewed (0)
  4. test/codegen/constants.go

    // Copyright 2023 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package codegen
    
    // A uint16 or sint16 constant shifted left.
    func shifted16BitConstants(out [64]uint64) {
    	// ppc64x: "MOVD\t[$]8193,", "SLD\t[$]27,"
    	out[0] = 0x0000010008000000
    	// ppc64x: "MOVD\t[$]-32767", "SLD\t[$]26,"
    	out[1] = 0xFFFFFE0004000000
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 05 14:03:32 UTC 2023
    - 1.1K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/test/switch_test.go

    	a := []any{
    		int8(1),
    		int16(2),
    		int32(3),
    		int64(4),
    		uint8(5),
    		uint16(6),
    		uint32(7),
    		uint64(8),
    	}
    	n := 0
    	rng := newRNG()
    	for i := 0; i < b.N; i++ {
    		rng = rng.next(predictable)
    		switch a[rng.value()&7].(type) {
    		case int8:
    			n += 1
    		case int16:
    			n += 2
    		case int32:
    			n += 3
    		case int64:
    			n += 4
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 06 15:42:30 UTC 2023
    - 4.2K bytes
    - Viewed (0)
  6. src/cmd/vendor/golang.org/x/sys/unix/syscall_openbsd_386.go

    }
    
    func SetKevent(k *Kevent_t, fd, mode, flags int) {
    	k.Ident = uint32(fd)
    	k.Filter = int16(mode)
    	k.Flags = uint16(flags)
    }
    
    func (iov *Iovec) SetLen(length int) {
    	iov.Len = uint32(length)
    }
    
    func (msghdr *Msghdr) SetControllen(length int) {
    	msghdr.Controllen = uint32(length)
    }
    
    func (msghdr *Msghdr) SetIovlen(length int) {
    	msghdr.Iovlen = uint32(length)
    }
    
    func (cmsg *Cmsghdr) SetLen(length int) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 1000 bytes
    - Viewed (0)
  7. src/runtime/gcinfo_test.go

    }
    
    var infoPtrScalar = []byte{typePointer, typeScalar, typePointer, typeScalar, typePointer, typeScalar}
    
    type BigStruct struct {
    	q *int
    	w byte
    	e [17]byte
    	r []byte
    	t int
    	y uint16
    	u uint64
    	i string
    }
    
    func infoBigStruct() []byte {
    	switch runtime.GOARCH {
    	case "386", "arm", "mips", "mipsle":
    		return []byte{
    			typePointer,                                                // q *int
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 09 19:58:08 UTC 2023
    - 6K bytes
    - Viewed (0)
  8. src/cmd/vendor/golang.org/x/text/cases/trieval.go

    // valueRange is an entry in a sparse block.
    type valueRange struct {
    	value  uint16
    	lo, hi byte
    }
    
    type sparseBlocks struct {
    	values  []valueRange
    	offsets []uint16
    }
    
    // lookup returns the value from values block n for byte b using binary search.
    func (s *sparseBlocks) lookup(n uint32, b byte) uint16 {
    	lo := s.offsets[n]
    	hi := s.offsets[n+1]
    	for lo < hi {
    		m := lo + (hi-lo)/2
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 24 13:01:26 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  9. test/abi/bad_internal_offsets.go

    //go:noinline
    func NoteFailure(fidx int, pkg string, pref string, parmNo int, _ uint64) {
    	FailCount += 1
    	if FailCount > 10 {
    		panic("bad")
    	}
    }
    
    //go:noinline
    func NoteFailureElem(fidx int, pkg string, pref string, parmNo int, elem int, _ uint64) {
    	FailCount += 1
    	if FailCount > 10 {
    		panic("bad")
    	}
    }
    
    type StructF0S0 struct {
    	F0 int16
    	F1 string
    	F2 StructF0S1
    }
    
    type StructF0S1 struct {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:25 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  10. src/cmd/vendor/golang.org/x/sys/unix/syscall_dragonfly_amd64.go

    	return Timeval{Sec: sec, Usec: usec}
    }
    
    func SetKevent(k *Kevent_t, fd, mode, flags int) {
    	k.Ident = uint64(fd)
    	k.Filter = int16(mode)
    	k.Flags = uint16(flags)
    }
    
    func (iov *Iovec) SetLen(length int) {
    	iov.Len = uint64(length)
    }
    
    func (msghdr *Msghdr) SetControllen(length int) {
    	msghdr.Controllen = uint32(length)
    }
    
    func (msghdr *Msghdr) SetIovlen(length int) {
    	msghdr.Iovlen = int32(length)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 1.2K bytes
    - Viewed (0)
Back to top