Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 266 for uint16 (0.15 sec)

  1. src/cmd/compile/internal/test/memcombine_test.go

    	t.a = uint16(x)
    	t.b = uint16(x >> 16)
    }
    
    type T8 struct {
    	a, b uint8
    }
    
    //go:noinline
    func (t *T8) bigEndianLoad() uint16 {
    	return uint16(t.a)<<8 | uint16(t.b)
    }
    
    //go:noinline
    func (t *T8) littleEndianLoad() uint16 {
    	return uint16(t.a) | (uint16(t.b) << 8)
    }
    
    //go:noinline
    func (t *T8) bigEndianStore(x uint16) {
    	t.a = uint8(x >> 8)
    	t.b = uint8(x)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 30 18:35:50 UTC 2023
    - 4.5K bytes
    - Viewed (0)
  2. src/cmd/vendor/golang.org/x/sys/windows/eventlog.go

    )
    
    //sys	RegisterEventSource(uncServerName *uint16, sourceName *uint16) (handle Handle, err error) [failretval==0] = advapi32.RegisterEventSourceW
    //sys	DeregisterEventSource(handle Handle) (err error) = advapi32.DeregisterEventSource
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 825 bytes
    - Viewed (0)
  3. src/internal/syscall/windows/security_windows.go

    	AuthFlags       uint32
    	FullName        *uint16
    	UsrComment      *uint16
    	Parms           *uint16
    	Workstations    *uint16
    	LastLogon       uint32
    	LastLogoff      uint32
    	AcctExpires     uint32
    	MaxStorage      uint32
    	UnitsPerWeek    uint32
    	LogonHours      *byte
    	BadPwCount      uint32
    	NumLogons       uint32
    	LogonServer     *uint16
    	CountryCode     uint32
    	CodePage        uint32
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 04 07:21:38 UTC 2023
    - 4K bytes
    - Viewed (0)
  4. src/vendor/golang.org/x/net/lif/binary.go

    )
    
    type binaryByteOrder interface {
    	Uint16([]byte) uint16
    	Uint32([]byte) uint32
    	Uint64([]byte) uint64
    	PutUint16([]byte, uint16)
    	PutUint32([]byte, uint32)
    	PutUint64([]byte, uint64)
    }
    
    type binaryLittleEndian struct{}
    
    func (binaryLittleEndian) Uint16(b []byte) uint16 {
    	_ = b[1] // bounds check hint to compiler; see golang.org/issue/14808
    	return uint16(b[0]) | uint16(b[1])<<8
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 3.3K bytes
    - Viewed (0)
  5. src/internal/syscall/windows/reparse_windows.go

    	SubstituteNameLength uint16
    	// PrintNameOffset is similar to SubstituteNameOffset.
    	PrintNameOffset uint16
    	// PrintNameLength is similar to SubstituteNameLength.
    	PrintNameLength uint16
    	// Flags specifies whether the substitute name is a full path name or
    	// a path name relative to the directory containing the symbolic link.
    	Flags      uint32
    	PathBuffer [1]uint16
    }
    
    // Path returns path stored in rb.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 12 07:15:06 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  6. src/unicode/utf16/utf16.go

    func Encode(s []rune) []uint16 {
    	n := len(s)
    	for _, v := range s {
    		if v >= surrSelf {
    			n++
    		}
    	}
    
    	a := make([]uint16, n)
    	n = 0
    	for _, v := range s {
    		switch RuneLen(v) {
    		case 1: // normal rune
    			a[n] = uint16(v)
    			n++
    		case 2: // needs surrogate sequence
    			r1, r2 := EncodeRune(v)
    			a[n] = uint16(r1)
    			a[n+1] = uint16(r2)
    			n += 2
    		default:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 07 19:08:48 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  7. src/runtime/defs_freebsd_amd64.go

    	mc_fs            uint16
    	mc_gs            uint16
    	mc_addr          uint64
    	mc_flags         uint32
    	mc_es            uint16
    	mc_ds            uint16
    	mc_err           uint64
    	mc_rip           uint64
    	mc_cs            uint64
    	mc_rflags        uint64
    	mc_rsp           uint64
    	mc_ss            uint64
    	mc_len           uint64
    	mc_fpformat      uint64
    	mc_ownedfp       uint64
    	mc_fpstate       [64]uint64
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 12 21:17:22 UTC 2024
    - 4.9K bytes
    - Viewed (1)
  8. src/compress/bzip2/huffman.go

    // symbol is found.
    func (t *huffmanTree) Decode(br *bitReader) (v uint16) {
    	nodeIndex := uint16(0) // node 0 is the root of the tree.
    
    	for {
    		node := &t.nodes[nodeIndex]
    
    		var bit uint16
    		if br.bits > 0 {
    			// Get next bit - fast path.
    			br.bits--
    			bit = uint16(br.n>>(br.bits&63)) & 1
    		} else {
    			// Get next bit - slow path.
    			// Use ReadBits to retrieve a single bit
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 15 17:44:37 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  9. src/internal/types/testdata/fixedbugs/issue63563.go

    	_ = int16(1 /* ERROR "constant 65535 overflows int16" */ <<16 - 1)
    	_ = int32(1 /* ERROR "constant 4294967295 overflows int32" */ <<32 - 1)
    	_ = int64(1 /* ERROR "constant 18446744073709551615 overflows int64" */ <<64 - 1)
    
    	_ = uint8(1 /* ERROR "constant 256 overflows uint8" */ << 8)
    	_ = uint16(1 /* ERROR "constant 65536 overflows uint16" */ << 16)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 31 16:11:16 UTC 2023
    - 1.2K bytes
    - Viewed (0)
  10. src/strconv/makeisprint.go

    			lo = i
    		}
    	}
    	return
    }
    
    func to16(x []uint32) []uint16 {
    	var y []uint16
    	for _, v := range x {
    		if uint32(uint16(v)) != v {
    			panic("bad 32->16 conversion")
    		}
    		y = append(y, uint16(v))
    	}
    	return y
    }
    
    func main() {
    	flag.Parse()
    
    	rang, except := scan(0, 0xFFFF)
    	range16 = to16(rang)
    	except16 = to16(except)
    	range32, except32 = scan(0x10000, unicode.MaxRune)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 11 18:56:17 UTC 2024
    - 4.3K bytes
    - Viewed (0)
Back to top