Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for is32Bit (0.22 sec)

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

    // fold constant into arithmetic ops
    (ADDV x (MOVVconst <t> [c])) && is32Bit(c) && !t.IsPtr() => (ADDVconst [c] x)
    (SUBV x (MOVVconst [c])) && is32Bit(c) => (SUBVconst [c] x)
    (AND x (MOVVconst [c])) && is32Bit(c) => (ANDconst [c] x)
    (OR  x (MOVVconst [c])) && is32Bit(c) => (ORconst  [c] x)
    (XOR x (MOVVconst [c])) && is32Bit(c) => (XORconst [c] x)
    (NOR x (MOVVconst [c])) && is32Bit(c) => (NORconst [c] x)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jul 31 03:59:48 UTC 2023
    - 41.9K bytes
    - Viewed (0)
  2. 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)
  3. src/cmd/compile/internal/ssa/_gen/LOONG64.rules

    // fold constant into arithmetic ops
    (ADDV x (MOVVconst <t> [c])) && is32Bit(c) && !t.IsPtr() => (ADDVconst [c] x)
    (SUBV x (MOVVconst [c])) && is32Bit(c) => (SUBVconst [c] x)
    (AND x (MOVVconst [c])) && is32Bit(c) => (ANDconst [c] x)
    (OR  x (MOVVconst [c])) && is32Bit(c) => (ORconst  [c] x)
    (XOR x (MOVVconst [c])) && is32Bit(c) => (XORconst [c] x)
    (NOR x (MOVVconst [c])) && is32Bit(c) => (NORconst [c] x)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 21 19:26:25 UTC 2023
    - 31.8K bytes
    - Viewed (0)
  4. src/go/constant/value.go

    	case complexVal:
    		return x
    	}
    	return unknownVal{}
    }
    
    // ----------------------------------------------------------------------------
    // Operations
    
    // is32bit reports whether x can be represented using 32 bits.
    func is32bit(x int64) bool {
    	const s = 32
    	return -1<<(s-1) <= x && x <= 1<<(s-1)-1
    }
    
    // is63bit reports whether x can be represented using 63 bits.
    func is63bit(x int64) bool {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 12:02:03 UTC 2023
    - 34K bytes
    - Viewed (0)
  5. 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)
  6. src/cmd/compile/internal/ssa/addressingmodes.go

    package ssa
    
    // addressingModes combines address calculations into memory operations
    // that can perform complicated addressing modes.
    func addressingModes(f *Func) {
    	isInImmediateRange := is32Bit
    	switch f.Config.arch {
    	default:
    		// Most architectures can't do this.
    		return
    	case "amd64", "386":
    	case "s390x":
    		isInImmediateRange = is20Bit
    	}
    
    	var tmp []*Value
    	for _, b := range f.Blocks {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jul 26 17:19:57 UTC 2023
    - 24.3K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/ssa/_gen/Wasm.rules

    (I64AddConst [off] (LoweredAddr {sym} [off2] base)) && isU32Bit(off+int64(off2)) =>
    	(LoweredAddr {sym} [int32(off)+off2] base)
    (I64AddConst [off] x:(SP)) && isU32Bit(off) => (LoweredAddr [int32(off)] x) // so it is rematerializeable
    
    // transforming readonly globals into constants
    (I64Load [off] (LoweredAddr {sym} [off2] (SB)) _) && symIsRO(sym) && isU32Bit(off+int64(off2)) => (I64Const [int64(read64(sym, off+int64(off2), config.ctxt.Arch.ByteOrder))])
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 17 03:56:57 UTC 2023
    - 16.9K bytes
    - Viewed (0)
Back to top