Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 739 for int1 (0.06 sec)

  1. src/go/internal/gccgoimporter/parser_test.go

    	{id: "foo", typ: "<type 1 interface { Foo (a <type -1>, b <type -2>) <type -1>; Bar (? <type -2>, ? ...<type -1>) (? <type -2>, ? <type -1>); Baz (); }>", want: "interface{Bar(int16, ...int8) (int16, int8); Baz(); Foo(a int8, b int16) int8}"},
    	{id: "foo", typ: "<type 1 (? <type -1>) <type -2>>", want: "func(int8) int16"},
    }
    
    func TestTypeParser(t *testing.T) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Nov 26 20:35:55 UTC 2018
    - 2.8K bytes
    - Viewed (0)
  2. test/fixedbugs/issue23719.go

    		panic("bad comparison")
    	}
    
    	w1 := [2]int16{-1, 88}
    	w2 := [2]int16{-1, 99}
    	if w1 == w2 {
    		panic("bad comparison")
    	}
    	x1 := [4]int16{-1, 88, 88, 88}
    	x2 := [4]int16{-1, 99, 99, 99}
    	if x1 == x2 {
    		panic("bad comparison")
    	}
    
    	a1 := [2]int8{-1, 88}
    	a2 := [2]int8{-1, 99}
    	if a1 == a2 {
    		panic("bad comparison")
    	}
    	b1 := [4]int8{-1, 88, 88, 88}
    	b2 := [4]int8{-1, 99, 99, 99}
    	if b1 == b2 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 06 18:24:33 UTC 2018
    - 826 bytes
    - Viewed (0)
  3. src/cmd/vendor/golang.org/x/sys/unix/ztypes_darwin_amd64.go

    }
    
    type XSocket struct {
    	Xso_len      uint32
    	Xso_so       uint32
    	So_type      int16
    	So_options   int16
    	So_linger    int16
    	So_state     int16
    	So_pcb       uint32
    	Xso_protocol int32
    	Xso_family   int32
    	So_qlen      int16
    	So_incqlen   int16
    	So_qlimit    int16
    	So_timeo     int16
    	So_error     uint16
    	So_pgid      int32
    	So_oobmark   uint32
    	So_rcv       XSockbuf
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 12.4K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/test/testdata/arith_test.go

    		}
    		if want, got := int8(i)%int8(pow2[3]) == 0, divisible_int8_2to3(int8(i)); got != want {
    			t.Errorf("divisible_int8_2to3(%d) = %v want %v", i, got, want)
    		}
    		if want, got := int8(i)%int8(pow2[4]) == 0, divisible_int8_2to4(int8(i)); got != want {
    			t.Errorf("divisible_int8_2to4(%d) = %v want %v", i, got, want)
    		}
    		if want, got := int8(i)%int8(pow2[5]) == 0, divisible_int8_2to5(int8(i)); got != want {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Dec 01 19:30:59 UTC 2023
    - 43.5K bytes
    - Viewed (0)
  5. src/internal/types/testdata/check/const1.go

    	maxFloat64 = math.MaxFloat64
    )
    
    const (
    	_ int8 = minInt8 /* ERROR "overflows" */ - 1
    	_ int8 = minInt8
    	_ int8 = maxInt8
    	_ int8 = maxInt8 /* ERROR "overflows" */ + 1
    	_ int8 = smallestFloat64 /* ERROR "truncated" */
    
    	_ = int8(minInt8 /* ERROR "overflows" */ - 1)
    	_ = int8(minInt8)
    	_ = int8(maxInt8)
    	_ = int8(maxInt8 /* ERROR "overflows" */ + 1)
    	_ = int8(smallestFloat64 /* ERROR "cannot convert" */)
    )
    
    const (
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 31 16:11:16 UTC 2023
    - 8.5K bytes
    - Viewed (0)
  6. test/ken/divmod.go

    		panic("fail")
    	}
    
    	/* int */
    	var in1 int = +5
    	var in2 int = -5
    	var id1 int = +3
    	var id2 int = -3
    
    	if in1/id1 != q1 || in1%id1 != r1 {
    		println("int-1", in1, id1, in1/id1, in1%id1)
    		panic("fail")
    	}
    	if in2/id1 != q2 || in2%id1 != r2 {
    		println("int-2", in2, id1, in2/id1, in2%id1)
    		panic("fail")
    	}
    	if in1/id2 != q3 || in1%id2 != r3 {
    		println("int-3", in1, id2, in1/id2, in1%id2)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 24 05:24:24 UTC 2012
    - 5.1K bytes
    - Viewed (0)
  7. src/syscall/ztypes_dragonfly_amd64.go

    	Syncwrites  int64
    	Asyncwrites int64
    	Fstypename  [16]int8
    	Mntonname   [80]int8
    	Syncreads   int64
    	Asyncreads  int64
    	Spares1     int16
    	Mntfromname [80]int8
    	Spares2     int16
    	Pad_cgo_1   [4]byte
    	Spare       [2]int64
    }
    
    type Flock_t struct {
    	Start  int64
    	Len    int64
    	Pid    int32
    	Type   int16
    	Whence int16
    }
    
    type Dirent struct {
    	Fileno  uint64
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 28 18:17:57 UTC 2021
    - 6.7K bytes
    - Viewed (0)
  8. test/ken/convert.go

    		case ti8*100 + ti8:
    			i8 = int8(v); i8 = int8(i8); w = big(i8)
    		case ti8*100 + tu8:
    			i8 = int8(v); u8 = uint8(i8); w = big(u8)
    		case ti8*100 + ti16:
    			i8 = int8(v); i16 = int16(i8); w = big(i16)
    		case ti8*100 + tu16:
    			i8 = int8(v); u16 = uint16(i8); w = big(u16)
    		case ti8*100 + ti32:
    			i8 = int8(v); i32 = int32(i8); w = big(i32)
    		case ti8*100 + tu32:
    			i8 = int8(v); u32 = uint32(i8); w = big(u32)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 24 05:24:24 UTC 2012
    - 14.9K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apimachinery/pkg/util/dump/dump_test.go

    	tebw := embedwrap{teb, &teb}
    
    	testCases := []struct {
    		a    interface{}
    		want string
    	}{
    		{int8(93), "(int8) 93\n"},
    		{int16(93), "(int16) 93\n"},
    		{int32(93), "(int32) 93\n"},
    		{int64(93), "(int64) 93\n"},
    		{int(-93), "(int) -93\n"},
    		{int8(-93), "(int8) -93\n"},
    		{int16(-93), "(int16) -93\n"},
    		{int32(-93), "(int32) -93\n"},
    		{int64(-93), "(int64) -93\n"},
    		{uint(93), "(uint) 93\n"},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Mar 27 01:24:22 UTC 2023
    - 10.3K bytes
    - Viewed (0)
  10. test/fixedbugs/issue19113.go

    import "reflect"
    
    var tests = []interface{}{
    	func(x int, s int) int {
    		return x << s
    	},
    	func(x int, s int64) int {
    		return x << s
    	},
    	func(x int, s int32) int {
    		return x << s
    	},
    	func(x int, s int16) int {
    		return x << s
    	},
    	func(x int, s int8) int {
    		return x << s
    	},
    	func(x int, s int) int {
    		return x >> s
    	},
    	func(x int, s int64) int {
    		return x >> s
    	},
    	func(x int, s int32) int {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 15 23:13:09 UTC 2019
    - 1.8K bytes
    - Viewed (0)
Back to top