Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 121 for Int16 (0.13 sec)

  1. test/fixedbugs/bug513.go

    // license that can be found in the LICENSE file.
    
    // Although -race turns on -d=checkptr, the explicit -d=checkptr=0
    // should override it.
    
    package main
    
    import "unsafe"
    
    var v1 = new([2]int16)
    var v2 *[3]int64
    
    func main() {
    	v2 = (*[3]int64)(unsafe.Pointer(uintptr(unsafe.Pointer(&(*v1)[0]))))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:25 UTC 2023
    - 596 bytes
    - Viewed (0)
  2. utils/utils_test.go

    func TestToString(t *testing.T) {
    	tests := []struct {
    		name string
    		in   interface{}
    		out  string
    	}{
    		{"int", math.MaxInt64, "9223372036854775807"},
    		{"int8", int8(math.MaxInt8), "127"},
    		{"int16", int16(math.MaxInt16), "32767"},
    		{"int32", int32(math.MaxInt32), "2147483647"},
    		{"int64", int64(math.MaxInt64), "9223372036854775807"},
    		{"uint", uint(math.MaxUint64), "18446744073709551615"},
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Mon Feb 19 03:42:25 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  3. test/fixedbugs/issue64606.go

    // license that can be found in the LICENSE file.
    
    package main
    
    func main() {
    	var o any = uint64(5)
    	switch o.(type) {
    	case int:
    		goto ret
    	case int8:
    		goto ret
    	case int16:
    		goto ret
    	case int32:
    		goto ret
    	case int64:
    		goto ret
    	case float32:
    		goto ret
    	case float64:
    		goto ret
    	default:
    		goto ret
    	}
    ret:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Dec 08 00:29:01 UTC 2023
    - 463 bytes
    - Viewed (0)
  4. test/abi/leaf.go

    // wasm is excluded because the compiler chatter about register abi pragma ends up
    // on stdout, and causes the expected output to not match.
    
    package main
    
    import "fmt"
    
    type i5f5 struct {
    	a, b          int16
    	c, d, e       int32
    	r, s, t, u, v float32
    }
    
    //go:registerparams
    //go:noinline
    func F(x i5f5) i5f5 {
    	return x
    }
    
    func main() {
    	x := i5f5{1, 2, 3, 4, 5, 6, 7, 8, 9, 10}
    	y := x
    	z := F(x)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:25 UTC 2023
    - 641 bytes
    - Viewed (0)
  5. test/abi/spills4.go

    // wasm is excluded because the compiler chatter about register abi pragma ends up
    // on stdout, and causes the expected output to not match.
    
    package main
    
    import "fmt"
    
    type i5f5 struct {
    	a, b          int16
    	c, d, e       int32
    	r, s, t, u, v float32
    }
    
    //go:noinline
    func spills(_ *float32) {
    
    }
    
    //go:registerparams
    //go:noinline
    func F(x i5f5) i5f5 {
    	y := x.v
    	spills(&y)
    	x.r = y
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:25 UTC 2023
    - 753 bytes
    - Viewed (0)
  6. test/typeparam/issue51925.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package main
    
    import "fmt"
    
    type IntLike interface {
    	~int | ~int64 | ~int32 | ~int16 | ~int8
    }
    
    func Reduce[T any, U any, Uslice ~[]U](function func(T, U) T, sequence Uslice, initial T) T {
    	result := initial
    	for _, x := range sequence {
    		result = function(result, x)
    	}
    	return result
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Dec 14 17:22:18 UTC 2023
    - 963 bytes
    - Viewed (0)
  7. src/encoding/gob/encgen.go

    	},
    	{
    		"float64",
    		"Float64",
    		"0",
    		`bits := floatBits(x)
    		state.encodeUint(bits)`,
    	},
    	{
    		"int",
    		"Int",
    		"0",
    		`state.encodeInt(int64(x))`,
    	},
    	{
    		"int16",
    		"Int16",
    		"0",
    		`state.encodeInt(int64(x))`,
    	},
    	{
    		"int32",
    		"Int32",
    		"0",
    		`state.encodeInt(int64(x))`,
    	},
    	{
    		"int64",
    		"Int64",
    		"0",
    		`state.encodeInt(x)`,
    	},
    	{
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 22 16:39:09 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  8. src/syscall/syscall_openbsd_ppc64.go

    	return Timespec{Sec: sec, Nsec: nsec}
    }
    
    func setTimeval(sec, usec int64) Timeval {
    	return Timeval{Sec: sec, Usec: usec}
    }
    
    func SetKevent(k *Kevent_t, fd, mode, flags int) {
    	k.Ident = uint64(fd)
    	k.Filter = int16(mode)
    	k.Flags = uint16(flags)
    }
    
    func (iov *Iovec) SetLen(length int) {
    	iov.Len = uint64(length)
    }
    
    func (msghdr *Msghdr) SetControllen(length int) {
    	msghdr.Controllen = uint32(length)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 22 03:24:15 UTC 2023
    - 906 bytes
    - Viewed (0)
  9. src/syscall/syscall_openbsd_riscv64.go

    	return Timespec{Sec: sec, Nsec: nsec}
    }
    
    func setTimeval(sec, usec int64) Timeval {
    	return Timeval{Sec: sec, Usec: usec}
    }
    
    func SetKevent(k *Kevent_t, fd, mode, flags int) {
    	k.Ident = uint64(fd)
    	k.Filter = int16(mode)
    	k.Flags = uint16(flags)
    }
    
    func (iov *Iovec) SetLen(length int) {
    	iov.Len = uint64(length)
    }
    
    func (msghdr *Msghdr) SetControllen(length int) {
    	msghdr.Controllen = uint32(length)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 04 02:55:38 UTC 2023
    - 906 bytes
    - Viewed (0)
  10. schema/serializer.go

    	rv := reflect.ValueOf(fieldValue)
    	switch v := fieldValue.(type) {
    	case int64, int, uint, uint64, int32, uint32, int16, uint16:
    		result = time.Unix(reflect.Indirect(rv).Int(), 0).UTC()
    	case *int64, *int, *uint, *uint64, *int32, *uint32, *int16, *uint16:
    		if rv.IsZero() {
    			return nil, nil
    		}
    		result = time.Unix(reflect.Indirect(rv).Int(), 0).UTC()
    	default:
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Mon Mar 18 08:28:46 UTC 2024
    - 4.6K bytes
    - Viewed (0)
Back to top