Search Options

Results per page
Sort
Preferred Languages
Advance

Results 91 - 100 of 2,491 for Init64 (0.14 sec)

  1. src/math/rand/rand.go

    // Uint64 returns a pseudo-random 64-bit value as a uint64.
    func (r *Rand) Uint64() uint64 {
    	if r.s64 != nil {
    		return r.s64.Uint64()
    	}
    	return uint64(r.Int63())>>31 | uint64(r.Int63())<<32
    }
    
    // Int31 returns a non-negative pseudo-random 31-bit integer as an int32.
    func (r *Rand) Int31() int32 { return int32(r.Int63() >> 32) }
    
    // Int returns a non-negative pseudo-random int.
    func (r *Rand) Int() int {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 22:09:08 UTC 2024
    - 16.9K bytes
    - Viewed (0)
  2. src/runtime/defs_linux_loong64.go

    	_SIGEV_THREAD_ID = 0x4
    )
    
    type timespec struct {
    	tv_sec  int64
    	tv_nsec int64
    }
    
    //go:nosplit
    func (ts *timespec) setNsec(ns int64) {
    	ts.tv_sec = ns / 1e9
    	ts.tv_nsec = ns % 1e9
    }
    
    type timeval struct {
    	tv_sec  int64
    	tv_usec int64
    }
    
    func (tv *timeval) set_usec(x int32) {
    	tv.tv_usec = int64(x)
    }
    
    type itimerspec struct {
    	it_interval timespec
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 22 19:05:10 UTC 2023
    - 3.4K bytes
    - Viewed (0)
  3. src/runtime/vdso_freebsd.go

    	}
    	return binuptime(abs)
    }
    
    func fallback_nanotime() int64
    func fallback_walltime() (sec int64, nsec int32)
    
    //go:nosplit
    func nanotime1() int64 {
    	bt := vdsoClockGettime(_CLOCK_MONOTONIC)
    	if bt == zeroBintime {
    		return fallback_nanotime()
    	}
    	return int64((1e9 * uint64(bt.sec)) + ((1e9 * uint64(bt.frac>>32)) >> 32))
    }
    
    func walltime() (sec int64, nsec int32) {
    	bt := vdsoClockGettime(_CLOCK_REALTIME)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  4. api/go1.22.txt

    pkg math/rand/v2, func Uint32N(uint32) uint32 #61716
    pkg math/rand/v2, func Uint64() uint64 #61716
    pkg math/rand/v2, func Uint64N(uint64) uint64 #61716
    pkg math/rand/v2, func UintN(uint) uint #61716
    pkg math/rand/v2, method (*ChaCha8) MarshalBinary() ([]uint8, error) #61716
    pkg math/rand/v2, method (*ChaCha8) Seed([32]uint8) #61716
    pkg math/rand/v2, method (*ChaCha8) Uint64() uint64 #61716
    pkg math/rand/v2, method (*ChaCha8) UnmarshalBinary([]uint8) error #61716
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 24 20:54:27 UTC 2024
    - 7.7K bytes
    - Viewed (0)
  5. src/cmd/link/internal/loader/symbolbuilder.go

    	return sb.setUintXX(arch, r, v, int64(arch.PtrSize))
    }
    
    func (sb *SymbolBuilder) SetUintptr(arch *sys.Arch, r int64, v uintptr) int64 {
    	return sb.setUintXX(arch, r, uint64(v), int64(arch.PtrSize))
    }
    
    func (sb *SymbolBuilder) SetAddrPlus(arch *sys.Arch, off int64, tgt Sym, add int64) int64 {
    	if sb.Type() == 0 {
    		sb.SetType(sym.SDATA)
    	}
    	if off+int64(arch.PtrSize) > sb.size {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 08 15:25:19 UTC 2023
    - 13.9K bytes
    - Viewed (0)
  6. src/math/rand/v2/rand_test.go

    }
    
    func BenchmarkInt64N1e8(b *testing.B) {
    	r := testRand()
    	var t int64
    	arg := keep(int64(1e8))
    	for n := b.N; n > 0; n-- {
    		t += r.Int64N(arg)
    	}
    	Sink = uint64(t)
    }
    
    func BenchmarkInt64N1e9(b *testing.B) {
    	r := testRand()
    	var t int64
    	arg := keep(int64(1e9))
    	for n := b.N; n > 0; n-- {
    		t += r.Int64N(arg)
    	}
    	Sink = uint64(t)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 18:42:28 UTC 2024
    - 17.4K bytes
    - Viewed (0)
  7. api/go1.23.txt

    pkg sync/atomic, func OrUint64(*uint64, uint64) uint64 #61395
    pkg sync/atomic, func OrUintptr(*uintptr, uintptr) uintptr #61395
    pkg sync/atomic, method (*Int32) And(int32) int32 #61395
    pkg sync/atomic, method (*Int32) Or(int32) int32 #61395
    pkg sync/atomic, method (*Int64) And(int64) int64 #61395
    pkg sync/atomic, method (*Int64) Or(int64) int64 #61395
    pkg sync/atomic, method (*Uint32) And(uint32) uint32 #61395
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jun 05 20:48:49 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  8. src/syscall/syscall_linux_arm.go

    )
    
    func setTimespec(sec, nsec int64) Timespec {
    	return Timespec{Sec: int32(sec), Nsec: int32(nsec)}
    }
    
    func setTimeval(sec, usec int64) Timeval {
    	return Timeval{Sec: int32(sec), Usec: int32(usec)}
    }
    
    // Underlying system call writes to newoffset via pointer.
    // Implemented in assembly to avoid allocation.
    func seek(fd int, offset int64, whence int) (newoffset int64, err Errno)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 21 22:23:07 UTC 2023
    - 7.1K bytes
    - Viewed (0)
  9. src/go/internal/gcimporter/iimport.go

    	constraint types.Type
    }
    
    type iimporter struct {
    	exportVersion int64
    	ipath         string
    	version       int
    
    	stringData  []byte
    	stringCache map[uint64]string
    	pkgCache    map[uint64]*types.Package
    
    	declData    []byte
    	pkgIndex    map[*types.Package]map[string]uint64
    	typCache    map[uint64]types.Type
    	tparamIndex map[ident]*types.TypeParam
    
    	fake          fakeFileSet
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 19.2K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/ssa/magic.go

    func sdivisibleOK64(c int64) bool { return sdivisibleOK(64, c) }
    
    type sdivisibleData struct {
    	k   int64  // trailingZeros(c)
    	m   uint64 // m * (c>>k) mod 2^n == 1 multiplicative inverse of odd portion modulo 2^n
    	a   uint64 // ⎣(2^(n-1) - 1)/ (c>>k)⎦ & -(1<<k) additive constant
    	max uint64 // ⎣(2 a) / (1<<k)⎦ max value to for divisibility
    }
    
    func sdivisible(n uint, c int64) sdivisibleData {
    	d := uint64(c)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 26 19:58:25 UTC 2024
    - 15.8K bytes
    - Viewed (0)
Back to top