Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 576 for Int8 (0.04 sec)

  1. test/fixedbugs/issue20530.go

    package main
    
    var a uint8
    
    //go:noinline
    func f() {
    	b := int8(func() int32 { return -1 }())
    	a = uint8(b)
    	if int32(a) != 255 {
    		// Failing case prints 'got 255 expected 255'
    		println("got", a, "expected 255")
    	}
    }
    
    //go:noinline
    func g() {
    	b := int8(func() uint32 { return 0xffffffff }())
    	a = uint8(b)
    	if int32(a) != 255 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 31 14:44:02 UTC 2017
    - 614 bytes
    - Viewed (0)
  2. src/cmd/vendor/golang.org/x/sys/unix/ztypes_openbsd_arm64.go

    type RawSockaddrUnix struct {
    	Len    uint8
    	Family uint8
    	Path   [104]int8
    }
    
    type RawSockaddrDatalink struct {
    	Len    uint8
    	Family uint8
    	Index  uint16
    	Type   uint8
    	Nlen   uint8
    	Alen   uint8
    	Slen   uint8
    	Data   [24]int8
    }
    
    type RawSockaddr struct {
    	Len    uint8
    	Family uint8
    	Data   [14]int8
    }
    
    type RawSockaddrAny struct {
    	Addr RawSockaddr
    	Pad  [92]int8
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 9.3K bytes
    - Viewed (0)
  3. src/cmd/vendor/golang.org/x/sys/unix/ztypes_openbsd_mips64.go

    type RawSockaddrUnix struct {
    	Len    uint8
    	Family uint8
    	Path   [104]int8
    }
    
    type RawSockaddrDatalink struct {
    	Len    uint8
    	Family uint8
    	Index  uint16
    	Type   uint8
    	Nlen   uint8
    	Alen   uint8
    	Slen   uint8
    	Data   [24]int8
    }
    
    type RawSockaddr struct {
    	Len    uint8
    	Family uint8
    	Data   [14]int8
    }
    
    type RawSockaddrAny struct {
    	Addr RawSockaddr
    	Pad  [92]int8
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 9.3K bytes
    - Viewed (0)
  4. src/encoding/binary/binary.go

    	d.offset += 8
    	return x
    }
    
    func (e *encoder) uint64(x uint64) {
    	e.order.PutUint64(e.buf[e.offset:e.offset+8], x)
    	e.offset += 8
    }
    
    func (d *decoder) int8() int8 { return int8(d.uint8()) }
    
    func (e *encoder) int8(x int8) { e.uint8(uint8(x)) }
    
    func (d *decoder) int16() int16 { return int16(d.uint16()) }
    
    func (e *encoder) int16(x int16) { e.uint16(uint16(x)) }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 17:29:31 UTC 2024
    - 23.4K bytes
    - Viewed (0)
  5. src/cmd/vendor/golang.org/x/sys/unix/ztypes_openbsd_386.go

    type RawSockaddrUnix struct {
    	Len    uint8
    	Family uint8
    	Path   [104]int8
    }
    
    type RawSockaddrDatalink struct {
    	Len    uint8
    	Family uint8
    	Index  uint16
    	Type   uint8
    	Nlen   uint8
    	Alen   uint8
    	Slen   uint8
    	Data   [24]int8
    }
    
    type RawSockaddr struct {
    	Len    uint8
    	Family uint8
    	Data   [14]int8
    }
    
    type RawSockaddrAny struct {
    	Addr RawSockaddr
    	Pad  [92]int8
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 9.2K bytes
    - Viewed (0)
  6. src/cmd/vendor/golang.org/x/sys/unix/ztypes_netbsd_386.go

    	Index  uint16
    	Type   uint8
    	Nlen   uint8
    	Alen   uint8
    	Slen   uint8
    	Data   [12]int8
    }
    
    type RawSockaddr struct {
    	Len    uint8
    	Family uint8
    	Data   [14]int8
    }
    
    type RawSockaddrAny struct {
    	Addr RawSockaddr
    	Pad  [92]int8
    }
    
    type _Socklen uint32
    
    type Linger struct {
    	Onoff  int32
    	Linger int32
    }
    
    type Iovec struct {
    	Base *byte
    	Len  uint32
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 9.5K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/test/testdata/loadstore_test.go

    	// Test that sign/zero extensions are kept when a load-hit-store
    	// is replaced by a register-register move.
    	{
    		var in int8 = (1 << 6) + 1
    		var p int8
    		got := loadHitStore8(in, &p)
    		want := int32(in * in)
    		if got != want {
    			t.Errorf("testLoadHitStore (int8) failed. want = %d, got = %d", want, got)
    		}
    	}
    	{
    		var in uint8 = (1 << 6) + 1
    		var p uint8
    		got := loadHitStoreU8(in, &p)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 05 17:54:15 UTC 2022
    - 4.8K bytes
    - Viewed (0)
  8. src/cmd/vendor/golang.org/x/sys/unix/ztypes_openbsd_amd64.go

    type RawSockaddrUnix struct {
    	Len    uint8
    	Family uint8
    	Path   [104]int8
    }
    
    type RawSockaddrDatalink struct {
    	Len    uint8
    	Family uint8
    	Index  uint16
    	Type   uint8
    	Nlen   uint8
    	Alen   uint8
    	Slen   uint8
    	Data   [24]int8
    }
    
    type RawSockaddr struct {
    	Len    uint8
    	Family uint8
    	Data   [14]int8
    }
    
    type RawSockaddrAny struct {
    	Addr RawSockaddr
    	Pad  [92]int8
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 9.2K bytes
    - Viewed (0)
  9. test/codegen/shift.go

    	g := int16(v >> 48)
    	// ppc64x:".*MOVH"
    	g += int16(v >> 30)
    	// ppc64x:-".*MOVH"
    	g += int16(f >> 16)
    	// ppc64x:-".*MOVB"
    	h := int8(v >> 56)
    	// ppc64x:".*MOVB"
    	h += int8(v >> 28)
    	// ppc64x:-".*MOVB"
    	h += int8(f >> 24)
    	// ppc64x:".*MOVB"
    	h += int8(f >> 16)
    	return int64(h), uint64(g)
    }
    
    func checkShiftAndMask32(v []uint32) {
    	i := 0
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 21 18:53:43 UTC 2024
    - 12.7K bytes
    - Viewed (0)
  10. test/interface/returntype.go

    // Test interface methods with different return types are distinct.
    
    package main
    
    type S struct { a int }
    type T struct { b string }
    
    func (s *S) Name() int8 { return 1 }
    func (t *T) Name() int64 { return 64 }
    
    type I1 interface { Name() int8 }
    type I2 interface { Name() int64 }
    
    func main() {
    	shouldPanic(p1)
    }
    
    func p1() {
    	var i1 I1
    	var s *S
    	i1 = s
    	print(i1.(I2).Name())
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Feb 19 06:33:41 UTC 2012
    - 670 bytes
    - Viewed (0)
Back to top