Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 586 for shifts (0.09 sec)

  1. src/math/bits/bits.go

    	// left shifting, in this case by k bits. The de Bruijn (64 bit) constant
    	// is such that all six bit, consecutive substrings are distinct.
    	// Therefore, if we have a left shifted version of this constant we can
    	// find by how many bits it was shifted by looking at which six bit
    	// substring ended up at the top of the word.
    	// (Knuth, volume 4, section 7.3.1)
    	return int(deBruijn64tab[(x&-x)*deBruijn64>>(64-6)])
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 11:59:09 UTC 2023
    - 17.9K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/test/testdata/arith_test.go

    //go:noinline
    func lshNop1(x uint64) uint64 {
    	// two outer shifts should be removed
    	return (((x << 5) >> 2) << 2)
    }
    
    //go:noinline
    func lshNop2(x uint64) uint64 {
    	return (((x << 5) >> 2) << 3)
    }
    
    //go:noinline
    func lshNop3(x uint64) uint64 {
    	return (((x << 5) >> 2) << 6)
    }
    
    //go:noinline
    func lshNotNop(x uint64) uint64 {
    	// outer shift can't be removed
    	return (((x << 5) >> 2) << 1)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Dec 01 19:30:59 UTC 2023
    - 43.5K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/ssa/value.go

    	// Unused portions of AuxInt are filled by sign-extending the used portion,
    	// even if the represented value is unsigned.
    	// Users of AuxInt which interpret AuxInt as unsigned (e.g. shifts) must be careful.
    	// Use Value.AuxUnsigned to get the zero-extended value of AuxInt.
    	AuxInt int64
    	Aux    Aux
    
    	// Arguments of this value
    	Args []*Value
    
    	// Containing basic block
    	Block *Block
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 16:40:22 UTC 2024
    - 16.7K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/ssa/_gen/MIPS64.rules

    (And(64|32|16|8) ...) => (AND ...)
    (Or(64|32|16|8) ...) => (OR ...)
    (Xor(64|32|16|8) ...) => (XOR ...)
    
    // shifts
    // hardware instruction uses only the low 6 bits of the shift
    // we compare to 64 to ensure Go semantics for large shifts
    (Lsh64x64 <t> x y) => (AND (NEGV <t> (SGTU (MOVVconst <typ.UInt64> [64]) y)) (SLLV <t> x y))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jul 31 03:59:48 UTC 2023
    - 41.9K bytes
    - Viewed (0)
  5. src/math/big/float.go

    // trailing 0 bits. x.mant is normalized if the msb of x.mant == 1 (i.e.,
    // the msb is shifted all the way "to the left"). Thus, if the mantissa has
    // trailing 0 bits or x.prec is not a multiple of the Word size _W,
    // x.mant[0] has trailing zero bits. The msb of the mantissa corresponds
    // to the value 0.5; the exponent x.exp shifts the binary point as needed.
    //
    // A zero or non-finite Float x ignores x.mant and x.exp.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 06 15:46:54 UTC 2024
    - 44.5K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/ssa/_gen/LOONG64Ops.go

    		// shifts
    		{name: "SLLV", argLength: 2, reg: gp21, asm: "SLLV"},                      // arg0 << arg1, shift amount is mod 64
    		{name: "SLLVconst", argLength: 1, reg: gp11, asm: "SLLV", aux: "Int64"},   // arg0 << auxInt
    		{name: "SRLV", argLength: 2, reg: gp21, asm: "SRLV"},                      // arg0 >> arg1, unsigned, shift amount is mod 64
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 21 19:04:19 UTC 2023
    - 25.2K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/ssa/_gen/MIPS64Ops.go

    		// shifts
    		{name: "SLLV", argLength: 2, reg: gp21, asm: "SLLV"},                    // arg0 << arg1, shift amount is mod 64
    		{name: "SLLVconst", argLength: 1, reg: gp11, asm: "SLLV", aux: "Int64"}, // arg0 << auxInt
    		{name: "SRLV", argLength: 2, reg: gp21, asm: "SRLV"},                    // arg0 >> arg1, unsigned, shift amount is mod 64
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 24 03:36:31 UTC 2023
    - 25.5K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/ssa/_gen/ARM64.rules

    (Not    x) => (XOR (MOVDconst [1]) x)
    
    // shifts
    // hardware instruction uses only the low 6 bits of the shift
    // we compare to 64 to ensure Go semantics for large shifts
    // Rules about rotates with non-const shift are based on the following rules,
    // if the following rules change, please also modify the rules based on them.
    
    // check shiftIsBounded first, if shift value is proved to be valid then we
    // can do the shift directly.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 15:49:20 UTC 2024
    - 113.1K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/ssa/_gen/386Ops.go

    		{name: "SHLLconst", argLength: 1, reg: gp11, asm: "SHLL", aux: "Int32", resultInArg0: true, clobberFlags: true}, // arg0 << auxint, shift amount 0-31
    		// Note: x86 is weird, the 16 and 8 byte shifts still use all 5 bits of shift amount!
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 14 08:10:32 UTC 2023
    - 45.1K bytes
    - Viewed (0)
  10. src/crypto/md5/gen.go

    	if err != nil {
    		log.Fatal(err)
    	}
    	err = os.WriteFile(*filename, data, 0644)
    	if err != nil {
    		log.Fatal(err)
    	}
    }
    
    type Data struct {
    	a, b, c, d string
    	Shift1     []int
    	Shift2     []int
    	Shift3     []int
    	Shift4     []int
    	Table1     []uint32
    	Table2     []uint32
    	Table3     []uint32
    	Table4     []uint32
    }
    
    var funcs = template.FuncMap{
    	"dup":     dup,
    	"relabel": relabel,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 18:57:38 UTC 2024
    - 4.7K bytes
    - Viewed (0)
Back to top