Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 549 for Int16 (0.04 sec)

  1. test/fixedbugs/issue21048.go

    	_ [3]byte
    	b [2]uint16 // offset: 6
    	_ [2]byte
    	c [2]uint32 // offset: 12
    	_ [2]byte
    	d [2]int16 // offset: 22
    	_ [2]byte
    	e [2]int32 // offset: 28
    }
    
    var Source, Sink T
    
    func newT() T {
    	return T{
    		a: [2]byte{1, 2},
    		b: [2]uint16{1, 2},
    		c: [2]uint32{1, 2},
    		d: [2]int16{1, 2},
    		e: [2]int32{1, 2},
    	}
    }
    
    //go:noinline
    func moves() {
    	Sink.a = Source.a
    	Sink.b = Source.b
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jul 19 14:22:48 UTC 2017
    - 1.1K bytes
    - Viewed (0)
  2. src/syscall/ztypes_freebsd_386.go

    	Charspare   [80]int8
    	Fstypename  [16]int8
    	Mntfromname [1024]int8
    	Mntonname   [1024]int8
    }
    
    type Flock_t struct {
    	Start  int64
    	Len    int64
    	Pid    int32
    	Type   int16
    	Whence int16
    	Sysid  int32
    }
    
    type Dirent struct {
    	Fileno uint64
    	Off    int64
    	Reclen uint16
    	Type   uint8
    	Pad0   uint8
    	Namlen uint16
    	Pad1   uint16
    	Name   [256]int8
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 16 01:17:28 UTC 2022
    - 8K bytes
    - Viewed (0)
  3. src/syscall/ztypes_freebsd_riscv64.go

    	Charspare   [80]int8
    	Fstypename  [16]int8
    	Mntfromname [1024]int8
    	Mntonname   [1024]int8
    }
    
    type Flock_t struct {
    	Start     int64
    	Len       int64
    	Pid       int32
    	Type      int16
    	Whence    int16
    	Sysid     int32
    	Pad_cgo_0 [4]byte
    }
    
    type Dirent struct {
    	Fileno uint64
    	Off    int64
    	Reclen uint16
    	Type   uint8
    	Pad0   uint8
    	Namlen uint16
    	Pad1   uint16
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 29 22:39:46 UTC 2022
    - 8K bytes
    - Viewed (0)
  4. test/codegen/arithmetic.go

    	}
    	return d, e
    }
    
    func NoFix16A(divr int16) (int16, int16) {
    	var d int16 = 42
    	var e int16 = 84
    	if divr > 5 {
    		// amd64:-"JMP"
    		// 386:-"JMP"
    		d /= divr
    		// amd64:-"JMP"
    		// 386:-"JMP"
    		e %= divr
    		d += e
    	}
    	return d, e
    }
    
    func NoFix16B(divd int16) (int16, int16) {
    	var d int16
    	var e int16
    	var divr int16 = -1
    	if divd > -32768 {
    		// amd64:-"JMP"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 15:28:00 UTC 2024
    - 15.2K bytes
    - Viewed (0)
  5. src/runtime/race/testdata/mutex_test.go

    func TestNoRaceMutex(t *testing.T) {
    	var mu sync.Mutex
    	var x int16 = 0
    	_ = x
    	ch := make(chan bool, 2)
    	go func() {
    		mu.Lock()
    		defer mu.Unlock()
    		x = 1
    		ch <- true
    	}()
    	go func() {
    		mu.Lock()
    		x = 2
    		mu.Unlock()
    		ch <- true
    	}()
    	<-ch
    	<-ch
    }
    
    func TestRaceMutex(t *testing.T) {
    	var mu sync.Mutex
    	var x int16 = 0
    	_ = x
    	ch := make(chan bool, 2)
    	go func() {
    		x = 1
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 23 22:14:38 UTC 2021
    - 2K bytes
    - Viewed (0)
  6. src/cmd/vendor/golang.org/x/sys/unix/ztypes_openbsd_amd64.go

    	F_mntfromname [90]byte
    	F_mntfromspec [90]byte
    	_             [2]byte
    	Mount_info    [160]byte
    }
    
    type Flock_t struct {
    	Start  int64
    	Len    int64
    	Pid    int32
    	Type   int16
    	Whence int16
    }
    
    type Dirent struct {
    	Fileno uint64
    	Off    int64
    	Reclen uint16
    	Type   uint8
    	Namlen uint8
    	_      [4]uint8
    	Name   [256]int8
    }
    
    type Fsid struct {
    	Val [2]int32
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 9.2K bytes
    - Viewed (0)
  7. test/typeparam/typeswitch2.go

    package main
    
    import "fmt"
    
    func f[T any](i interface{}) {
    	switch x := i.(type) {
    	case T:
    		fmt.Println("T", x)
    	case int:
    		fmt.Println("int", x)
    	case int32, int16:
    		fmt.Println("int32/int16", x)
    	case struct{ a, b T }:
    		fmt.Println("struct{T,T}", x.a, x.b)
    	default:
    		fmt.Println("other", x)
    	}
    }
    func main() {
    	f[float64](float64(6))
    	f[float64](int(7))
    	f[float64](int32(8))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 07 13:47:58 UTC 2022
    - 709 bytes
    - Viewed (0)
  8. src/cmd/compile/internal/test/divconst_test.go

    	}
    }
    
    var i16res int16
    
    func BenchmarkDivconstI16(b *testing.B) {
    	for i := 0; i < b.N; i++ {
    		i16res = int16(i) / 7
    	}
    }
    
    func BenchmarkModconstI16(b *testing.B) {
    	for i := 0; i < b.N; i++ {
    		i16res = int16(i) % 7
    	}
    }
    
    func BenchmarkDivisiblePow2constI16(b *testing.B) {
    	for i := 0; i < b.N; i++ {
    		boolres = int16(i)%16 == 0
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 29 00:07:35 UTC 2020
    - 7.7K bytes
    - Viewed (0)
  9. src/cmd/vendor/golang.org/x/sys/unix/ztypes_openbsd_arm64.go

    	F_mntfromname [90]byte
    	F_mntfromspec [90]byte
    	_             [2]byte
    	Mount_info    [160]byte
    }
    
    type Flock_t struct {
    	Start  int64
    	Len    int64
    	Pid    int32
    	Type   int16
    	Whence int16
    }
    
    type Dirent struct {
    	Fileno uint64
    	Off    int64
    	Reclen uint16
    	Type   uint8
    	Namlen uint8
    	_      [4]uint8
    	Name   [256]int8
    }
    
    type Fsid struct {
    	Val [2]int32
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 9.3K bytes
    - Viewed (0)
  10. src/cmd/vendor/golang.org/x/sys/unix/ztypes_openbsd_mips64.go

    	F_mntfromname [90]byte
    	F_mntfromspec [90]byte
    	_             [2]byte
    	Mount_info    [160]byte
    }
    
    type Flock_t struct {
    	Start  int64
    	Len    int64
    	Pid    int32
    	Type   int16
    	Whence int16
    }
    
    type Dirent struct {
    	Fileno uint64
    	Off    int64
    	Reclen uint16
    	Type   uint8
    	Namlen uint8
    	_      [4]uint8
    	Name   [256]int8
    }
    
    type Fsid struct {
    	Val [2]int32
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 9.3K bytes
    - Viewed (0)
Back to top