Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for allUnsigned (0.12 sec)

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

    // is the same as underIs(t, isX)).
    
    func allBoolean(t Type) bool         { return allBasic(t, IsBoolean) }
    func allInteger(t Type) bool         { return allBasic(t, IsInteger) }
    func allUnsigned(t Type) bool        { return allBasic(t, IsUnsigned) }
    func allNumeric(t Type) bool         { return allBasic(t, IsNumeric) }
    func allString(t Type) bool          { return allBasic(t, IsString) }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:01:18 UTC 2024
    - 17.5K bytes
    - Viewed (0)
  2. src/go/types/predicates.go

    // is the same as underIs(t, isX)).
    
    func allBoolean(t Type) bool         { return allBasic(t, IsBoolean) }
    func allInteger(t Type) bool         { return allBasic(t, IsInteger) }
    func allUnsigned(t Type) bool        { return allBasic(t, IsUnsigned) }
    func allNumeric(t Type) bool         { return allBasic(t, IsNumeric) }
    func allString(t Type) bool          { return allBasic(t, IsString) }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:01:18 UTC 2024
    - 17.6K bytes
    - Viewed (0)
  3. src/go/types/expr.go

    			if y.mode == invalid {
    				x.mode = invalid
    				return
    			}
    		}
    	} else {
    		// Check that RHS is otherwise at least of integer type.
    		switch {
    		case allInteger(y.typ):
    			if !allUnsigned(y.typ) && !check.verifyVersionf(y, go1_13, invalidOp+"signed shift count %s", y) {
    				x.mode = invalid
    				return
    			}
    		case isUntyped(y.typ):
    			// This is incorrect, but preserves pre-existing behavior.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 02:09:54 UTC 2024
    - 49.7K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/types2/expr.go

    			if y.mode == invalid {
    				x.mode = invalid
    				return
    			}
    		}
    	} else {
    		// Check that RHS is otherwise at least of integer type.
    		switch {
    		case allInteger(y.typ):
    			if !allUnsigned(y.typ) && !check.verifyVersionf(y, go1_13, invalidOp+"signed shift count %s", y) {
    				x.mode = invalid
    				return
    			}
    		case isUntyped(y.typ):
    			// This is incorrect, but preserves pre-existing behavior.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 02:09:54 UTC 2024
    - 51.7K bytes
    - Viewed (0)
Back to top