Search Options

Results per page
Sort
Preferred Languages
Advance

Results 121 - 130 of 2,138 for Init64 (0.15 sec)

  1. src/cmd/compile/internal/ssa/rewriteRISCV64latelower.go

    	// cond: c <= 56
    	// result: (SRLI [56-c] (SLLI <typ.UInt64> [56] x))
    	for {
    		c := auxIntToInt64(v.AuxInt)
    		if v_0.Op != OpRISCV64MOVBUreg {
    			break
    		}
    		x := v_0.Args[0]
    		if !(c <= 56) {
    			break
    		}
    		v.reset(OpRISCV64SRLI)
    		v.AuxInt = int64ToAuxInt(56 - c)
    		v0 := b.NewValue0(v.Pos, OpRISCV64SLLI, typ.UInt64)
    		v0.AuxInt = int64ToAuxInt(56)
    		v0.AddArg(x)
    		v.AddArg(v0)
    		return true
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jan 19 22:42:34 UTC 2023
    - 5.1K bytes
    - Viewed (0)
  2. src/internal/profile/proto_test.go

    	type testcase struct {
    		uint64s []uint64
    		int64s  []int64
    		encoded []byte
    	}
    	for i, tc := range []testcase{
    		{
    			[]uint64{0, 1, 10, 100, 1000, 10000},
    			[]int64{1000, 0, 1000},
    			[]byte{10, 8, 0, 1, 10, 100, 232, 7, 144, 78, 18, 5, 232, 7, 0, 232, 7},
    		},
    		{
    			[]uint64{10000},
    			nil,
    			[]byte{8, 144, 78},
    		},
    		{
    			nil,
    			[]int64{-10000},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 09 14:05:53 UTC 2022
    - 1.7K bytes
    - Viewed (0)
  3. src/encoding/gob/encgen.go

    		`state.encodeUint(uint64(len(x)))
    		state.b.WriteString(x)`,
    	},
    	{
    		"uint",
    		"Uint",
    		"0",
    		`state.encodeUint(uint64(x))`,
    	},
    	{
    		"uint16",
    		"Uint16",
    		"0",
    		`state.encodeUint(uint64(x))`,
    	},
    	{
    		"uint32",
    		"Uint32",
    		"0",
    		`state.encodeUint(uint64(x))`,
    	},
    	{
    		"uint64",
    		"Uint64",
    		"0",
    		`state.encodeUint(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)
  4. src/cmd/vendor/golang.org/x/sys/unix/syscall_freebsd_amd64.go

    	"unsafe"
    )
    
    func setTimespec(sec, nsec int64) Timespec {
    	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)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  5. utils/utils.go

    	case int:
    		return strconv.FormatInt(int64(v), 10)
    	case int8:
    		return strconv.FormatInt(int64(v), 10)
    	case int16:
    		return strconv.FormatInt(int64(v), 10)
    	case int32:
    		return strconv.FormatInt(int64(v), 10)
    	case int64:
    		return strconv.FormatInt(v, 10)
    	case uint:
    		return strconv.FormatUint(uint64(v), 10)
    	case uint8:
    		return strconv.FormatUint(uint64(v), 10)
    	case uint16:
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Mon Apr 22 06:43:02 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  6. src/syscall/syscall_linux_ppc64x.go

    	msghdr.Controllen = uint64(length)
    }
    
    func (cmsg *Cmsghdr) SetLen(length int) {
    	cmsg.Len = uint64(length)
    }
    
    //sys	syncFileRange2(fd int, flags int, off int64, n int64) (err error) = SYS_SYNC_FILE_RANGE2
    
    func SyncFileRange(fd int, off int64, n int64, flags int) error {
    	// The sync_file_range and sync_file_range2 syscalls differ only in the
    	// order of their arguments.
    	return syncFileRange2(fd, flags, off, n)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 21 22:23:07 UTC 2023
    - 4.6K bytes
    - Viewed (0)
  7. src/internal/types/testdata/fixedbugs/issue63563.go

    	_ = int64(1 /* ERROR "constant 18446744073709551615 overflows int64" */ <<64 - 1)
    
    	_ = uint8(1 /* ERROR "constant 256 overflows uint8" */ << 8)
    	_ = uint16(1 /* ERROR "constant 65536 overflows uint16" */ << 16)
    	_ = uint32(1 /* ERROR "constant 4294967296 overflows uint32" */ << 32)
    	_ = uint64(1 /* ERROR "constant 18446744073709551616 overflows uint64" */ << 64)
    )
    
    func _[P int8 | uint8]() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 31 16:11:16 UTC 2023
    - 1.2K bytes
    - Viewed (0)
  8. src/runtime/conv_wasm_test.go

    // license that can be found in the LICENSE file.
    
    package runtime_test
    
    import (
    	"testing"
    )
    
    var res int64
    var ures uint64
    
    func TestFloatTruncation(t *testing.T) {
    	testdata := []struct {
    		input      float64
    		convInt64  int64
    		convUInt64 uint64
    		overflow   bool
    	}{
    		// max +- 1
    		{
    			input:      0x7fffffffffffffff,
    			convInt64:  -0x8000000000000000,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 06 13:55:00 UTC 2020
    - 3K bytes
    - Viewed (0)
  9. src/runtime/race/testdata/atomic_test.go

    }
    
    func TestNoRaceAtomicLoadInt64(t *testing.T) {
    	var x int32
    	_ = x
    	var s int64
    	go func() {
    		x = 2
    		atomic.AddInt64(&s, 1)
    	}()
    	for atomic.LoadInt64(&s) != 1 {
    		runtime.Gosched()
    	}
    	x = 1
    }
    
    func TestNoRaceAtomicCASCASUInt64(t *testing.T) {
    	var x int64
    	_ = x
    	var s uint64
    	go func() {
    		x = 2
    		if !atomic.CompareAndSwapUint64(&s, 0, 1) {
    			panic("")
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Nov 16 17:26:46 UTC 2020
    - 4.9K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/test/testdata/gen/constFoldGen.go

    type szD struct {
    	name string
    	sn   string
    	u    []uint64
    	i    []int64
    }
    
    var szs []szD = []szD{
    	szD{name: "uint64", sn: "64", u: []uint64{0, 1, 4294967296, 0xffffFFFFffffFFFF}},
    	szD{name: "int64", sn: "64", i: []int64{-0x8000000000000000, -0x7FFFFFFFFFFFFFFF,
    		-4294967296, -1, 0, 1, 4294967296, 0x7FFFFFFFFFFFFFFE, 0x7FFFFFFFFFFFFFFF}},
    
    	szD{name: "uint32", sn: "32", u: []uint64{0, 1, 4294967295}},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 20 02:13:02 UTC 2022
    - 8.4K bytes
    - Viewed (0)
Back to top