Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 15 of 15 for SHL (0.03 sec)

  1. src/cmd/compile/internal/types2/expr.go

    	syntax.Xor: token.XOR,
    
    	syntax.Mul:    token.MUL,
    	syntax.Div:    token.QUO,
    	syntax.Rem:    token.REM,
    	syntax.And:    token.AND,
    	syntax.AndNot: token.AND_NOT,
    	syntax.Shl:    token.SHL,
    	syntax.Shr:    token.SHR,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 02:09:54 UTC 2024
    - 51.7K bytes
    - Viewed (0)
  2. src/go/types/expr.go

    }
    
    // This is only used for operations that may cause overflow.
    var op2str2 = [...]string{
    	token.ADD: "addition",
    	token.SUB: "subtraction",
    	token.XOR: "bitwise XOR",
    	token.MUL: "multiplication",
    	token.SHL: "shift",
    }
    
    // If typ is a type parameter, underIs returns the result of typ.underIs(f).
    // Otherwise, underIs returns the result of f(under(typ)).
    func underIs(typ Type, f func(Type) bool) bool {
    	typ = Unalias(typ)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 02:09:54 UTC 2024
    - 49.7K bytes
    - Viewed (0)
  3. src/math/big/int_test.go

    			}
    		}
    	}
    }
    
    func BenchmarkModInverse(b *testing.B) {
    	p := new(Int).SetInt64(1) // Mersenne prime 2**1279 -1
    	p.abs = p.abs.shl(p.abs, 1279)
    	p.Sub(p, intOne)
    	x := new(Int).Sub(p, intOne)
    	z := new(Int)
    	for i := 0; i < b.N; i++ {
    		z.ModInverse(x, p)
    	}
    }
    
    // testModSqrt is a helper for TestModSqrt,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 18:42:28 UTC 2024
    - 58.5K bytes
    - Viewed (0)
  4. src/math/big/int.go

    	default:
    		// Otherwise, use Tonelli-Shanks.
    		return z.modSqrtTonelliShanks(x, p)
    	}
    }
    
    // Lsh sets z = x << n and returns z.
    func (z *Int) Lsh(x *Int, n uint) *Int {
    	z.abs = z.abs.shl(x.abs, n)
    	z.neg = x.neg
    	return z
    }
    
    // Rsh sets z = x >> n and returns z.
    func (z *Int) Rsh(x *Int, n uint) *Int {
    	if x.neg {
    		// (-x) >> s == ^(x-1) >> s == ^((x-1) >> s) == -(((x-1) >> s) + 1)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 14 17:02:38 UTC 2024
    - 33.1K bytes
    - Viewed (0)
  5. src/cmd/vendor/golang.org/x/tools/internal/stdlib/manifest.go

    		{"RBRACE", Const, 0},
    		{"RBRACK", Const, 0},
    		{"REM", Const, 0},
    		{"REM_ASSIGN", Const, 0},
    		{"RETURN", Const, 0},
    		{"RPAREN", Const, 0},
    		{"SELECT", Const, 0},
    		{"SEMICOLON", Const, 0},
    		{"SHL", Const, 0},
    		{"SHL_ASSIGN", Const, 0},
    		{"SHR", Const, 0},
    		{"SHR_ASSIGN", Const, 0},
    		{"STRING", Const, 0},
    		{"STRUCT", Const, 0},
    		{"SUB", Const, 0},
    		{"SUB_ASSIGN", Const, 0},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 534.2K bytes
    - Viewed (0)
Back to top