Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 1,046 for fInt16 (0.2 sec)

  1. test/literal.go

    	assert(i01 == i00+1, "i01")
    	assert(i02 == -i01, "i02")
    	assert(i03 == -i04, "i03")
    	assert(-(i05+1) == i06, "i05")
    
    	// int16
    	var i10 int16 = 0
    	var i11 int16 = 1
    	var i12 int16 = -1
    	var i13 int16 = 32767
    	var i14 int16 = -32767
    	var i15 int16 = -32768
    	var i16 int16 = +32767
    	assert(i11 == i10+1, "i11")
    	assert(i12 == -i11, "i12")
    	assert(i13 == -i14, "i13")
    	assert(-(i15+1) == i16, "i15")
    
    	// int32
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 12 18:17:49 UTC 2013
    - 5K bytes
    - Viewed (0)
  2. src/syscall/ztypes_linux_mips.go

    	Family uint16
    	Port   uint16
    	Addr   [4]byte /* in_addr */
    	Zero   [8]uint8
    }
    
    type RawSockaddrInet6 struct {
    	Family   uint16
    	Port     uint16
    	Flowinfo uint32
    	Addr     [16]byte /* in6_addr */
    	Scope_id uint32
    }
    
    type RawSockaddrUnix struct {
    	Family uint16
    	Path   [108]int8
    }
    
    type RawSockaddrLinklayer struct {
    	Family   uint16
    	Protocol uint16
    	Ifindex  int32
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 08 17:55:49 UTC 2023
    - 10K bytes
    - Viewed (0)
  3. src/syscall/ztypes_linux_mipsle.go

    	Family uint16
    	Port   uint16
    	Addr   [4]byte /* in_addr */
    	Zero   [8]uint8
    }
    
    type RawSockaddrInet6 struct {
    	Family   uint16
    	Port     uint16
    	Flowinfo uint32
    	Addr     [16]byte /* in6_addr */
    	Scope_id uint32
    }
    
    type RawSockaddrUnix struct {
    	Family uint16
    	Path   [108]int8
    }
    
    type RawSockaddrLinklayer struct {
    	Family   uint16
    	Protocol uint16
    	Ifindex  int32
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 08 17:55:49 UTC 2023
    - 10K bytes
    - Viewed (0)
  4. src/syscall/ztypes_linux_ppc64le.go

    	Family uint16
    	Port   uint16
    	Addr   [4]byte /* in_addr */
    	Zero   [8]uint8
    }
    
    type RawSockaddrInet6 struct {
    	Family   uint16
    	Port     uint16
    	Flowinfo uint32
    	Addr     [16]byte /* in6_addr */
    	Scope_id uint32
    }
    
    type RawSockaddrUnix struct {
    	Family uint16
    	Path   [108]int8
    }
    
    type RawSockaddrLinklayer struct {
    	Family   uint16
    	Protocol uint16
    	Ifindex  int32
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 08 17:55:49 UTC 2023
    - 10.4K bytes
    - Viewed (0)
  5. test/fixedbugs/bug296.go

    func (x Uint8) m(a, b, c, d, e, f, g, h byte) {
    	check("Uint8", int64(x), 0x01, a, b, c, d, e, f, g, h)
    }
    
    type Int16 int16
    
    func (x Int16) m(a, b, c, d, e, f, g, h byte) {
    	check("Int16", int64(x), 0x0102, a, b, c, d, e, f, g, h)
    }
    
    type Uint16 uint16
    
    func (x Uint16) m(a, b, c, d, e, f, g, h byte) {
    	check("Uint16", int64(x), 0x0102, a, b, c, d, e, f, g, h)
    }
    
    type Int32 int32
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 1.8K bytes
    - Viewed (0)
  6. src/syscall/ztypes_solaris_amd64.go

    }
    
    type RawSockaddrInet6 struct {
    	Family         uint16
    	Port           uint16
    	Flowinfo       uint32
    	Addr           [16]byte /* in6_addr */
    	Scope_id       uint32
    	X__sin6_src_id uint32
    }
    
    type RawSockaddrUnix struct {
    	Family uint16
    	Path   [108]int8
    }
    
    type RawSockaddrDatalink struct {
    	Family uint16
    	Index  uint16
    	Type   uint8
    	Nlen   uint8
    	Alen   uint8
    	Slen   uint8
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 28 18:17:57 UTC 2021
    - 5.6K bytes
    - Viewed (0)
  7. src/syscall/ztypes_openbsd_riscv64.go

    }
    
    type IfaMsghdr struct {
    	Msglen  uint16
    	Version uint8
    	Type    uint8
    	Hdrlen  uint16
    	Index   uint16
    	Tableid uint16
    	Pad1    uint8
    	Pad2    uint8
    	Addrs   int32
    	Flags   int32
    	Metric  int32
    }
    
    type IfAnnounceMsghdr struct {
    	Msglen  uint16
    	Version uint8
    	Type    uint8
    	Hdrlen  uint16
    	Index   uint16
    	What    uint16
    	Name    [16]int8
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 04 02:55:38 UTC 2023
    - 6.7K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/test/testdata/cmpConst_test.go

    func gt_255_uint16(x uint16) bool   { return x > 255 }
    func ge_255_uint16(x uint16) bool   { return x >= 255 }
    func eq_255_uint16(x uint16) bool   { return x == 255 }
    func ne_255_uint16(x uint16) bool   { return x != 255 }
    func lt_256_uint16(x uint16) bool   { return x < 256 }
    func le_256_uint16(x uint16) bool   { return x <= 256 }
    func gt_256_uint16(x uint16) bool   { return x > 256 }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Dec 23 06:40:04 UTC 2020
    - 103.1K bytes
    - Viewed (0)
  9. src/syscall/ztypes_linux_arm.go

    	Family uint16
    	Port   uint16
    	Addr   [4]byte /* in_addr */
    	Zero   [8]uint8
    }
    
    type RawSockaddrInet6 struct {
    	Family   uint16
    	Port     uint16
    	Flowinfo uint32
    	Addr     [16]byte /* in6_addr */
    	Scope_id uint32
    }
    
    type RawSockaddrUnix struct {
    	Family uint16
    	Path   [108]int8
    }
    
    type RawSockaddrLinklayer struct {
    	Family   uint16
    	Protocol uint16
    	Ifindex  int32
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 08 17:55:49 UTC 2023
    - 11.5K bytes
    - Viewed (0)
  10. test/fixedbugs/issue57955.go

    package main
    
    func main() {
    	Decode[int16](nil)
    	Decode[uint16](nil)
    	Decode[float64](nil)
    }
    
    func DecodeInt16(b []byte) (int16, int) {
    	return 0, 0
    }
    
    func DecodeUint16(b []byte) (uint16, int) {
    	return 0, 0
    }
    
    func DecodeFloat64(b []byte) (float64, int) {
    	return 0, 0
    }
    
    func Decode[T any](b []byte) (T, int) {
    	switch any(*new(T)).(type) {
    	case int16:
    		v, n := DecodeInt16(b)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 01 19:29:08 UTC 2023
    - 794 bytes
    - Viewed (0)
Back to top