Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for is32Bit (0.11 sec)

  1. src/cmd/compile/internal/ssa/_gen/RISCV64.rules

    	(MOVHUload [off1+int32(off2)] {sym} base mem)
    (MOVHload  [off1] {sym} (ADDI [off2] base) mem) && is32Bit(int64(off1)+off2) =>
    	(MOVHload  [off1+int32(off2)] {sym} base mem)
    (MOVWUload [off1] {sym} (ADDI [off2] base) mem) && is32Bit(int64(off1)+off2) =>
    	(MOVWUload [off1+int32(off2)] {sym} base mem)
    (MOVWload  [off1] {sym} (ADDI [off2] base) mem) && is32Bit(int64(off1)+off2) =>
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 07 14:57:07 UTC 2024
    - 40.3K bytes
    - Viewed (0)
  2. src/math/rand/v2/rand.go

    	if n == 0 {
    		panic("invalid argument to Uint64N")
    	}
    	return r.uint64n(n)
    }
    
    // uint64n is the no-bounds-checks version of Uint64N.
    func (r *Rand) uint64n(n uint64) uint64 {
    	if is32bit && uint64(uint32(n)) == n {
    		return uint64(r.uint32n(uint32(n)))
    	}
    	if n&(n-1) == 0 { // n is power of two, can mask
    		return r.Uint64() & (n - 1)
    	}
    
    	// Suppose we have a uint64 x uniform in the range [0,2⁶⁴)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 02:25:49 UTC 2024
    - 12.8K bytes
    - Viewed (0)
Back to top