Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 27 of 27 for Unary (0.04 sec)

  1. src/cmd/asm/internal/asm/expr_test.go

    var exprTests = []exprTest{
    	// Simple
    	{"0", 0, true},
    	{"3", 3, true},
    	{"070", 8 * 7, true},
    	{"0x0f", 15, true},
    	{"0xFF", 255, true},
    	{"9223372036854775807", 9223372036854775807, true}, // max int64
    	// Unary
    	{"-0", 0, true},
    	{"~0", -1, true},
    	{"~0*0", 0, true},
    	{"+3", 3, true},
    	{"-3", -3, true},
    	{"-9223372036854775808", -9223372036854775808, true}, // min int64
    	// Binary
    	{"3+4", 3 + 4, true},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 29 07:48:38 UTC 2023
    - 3.2K bytes
    - Viewed (0)
  2. platforms/core-configuration/kotlin-dsl/src/main/kotlin/org/gradle/kotlin/dsl/GroovyInteroperability.kt

        thisObject: Any? = null
    ) : groovy.lang.Closure<V?>(owner, thisObject) {
    
        @Suppress("unused") // to be called dynamically by Groovy
        fun doCall(): V? = function()
    }
    
    
    /**
     * Adapts an unary Kotlin function to an unary Groovy [Closure].
     *
     * @param T the type of the single argument to the closure.
     * @param V the return type.
     * @param function the function to be adapted.
     * @param owner optional owner of the Closure.
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Aug 02 08:06:49 UTC 2023
    - 9.7K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/typecheck/universe.go

    	okfor[ir.OOR] = okforand[:]
    	okfor[ir.OOROR] = okforbool[:]
    	okfor[ir.OSUB] = okforarith[:]
    	okfor[ir.OXOR] = okforand[:]
    	okfor[ir.OLSH] = okforand[:]
    	okfor[ir.ORSH] = okforand[:]
    
    	// unary
    	okfor[ir.OBITNOT] = okforand[:]
    	okfor[ir.ONEG] = okforarith[:]
    	okfor[ir.ONOT] = okforbool[:]
    	okfor[ir.OPLUS] = okforarith[:]
    
    	// special
    	okfor[ir.OCAP] = okforcap[:]
    	okfor[ir.OLEN] = okforlen[:]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 05 15:20:28 UTC 2023
    - 4.7K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/transforms/lower_globals_to_ml_program.cc

            return success();
          }
        }
        return op->emitOpError("Block has no predecessor");
      }
    
      if (v.getDefiningOp()->getNumOperands() == 1) {
        // If the value is originating from an unary op, assume it's something
        // simple like "cast" and keep tracing.
        return traceUpwardsToArgument(v.getDefiningOp()->getOperand(0), seen, out);
      } else {
        // Typically a tf.VarHandle op.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 8.6K bytes
    - Viewed (0)
  5. src/go/token/token.go

    	}
    	return s
    }
    
    // A set of constants for precedence-based expression parsing.
    // Non-operators have lowest precedence, followed by operators
    // starting with precedence 1 up to unary operators. The highest
    // precedence serves as "catch-all" precedence for selector,
    // indexing, and other operator and delimiter tokens.
    const (
    	LowestPrec  = 0 // non-operators
    	UnaryPrec   = 6
    	HighestPrec = 7
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 12:02:03 UTC 2023
    - 6.4K bytes
    - Viewed (0)
  6. test/fixedbugs/issue9604b.go

    					eqn := fmt.Sprintf("%s_%s %s %s_%s != %d", t.name, valname(x), op.name, t.name, valname(y), r)
    					fmt.Printf("\tif %s { println(\"bad: %s\") }\n", eqn, eqn)
    				}
    			}
    		}
    		// test unary ops
    		for _, op := range unops {
    			for _, x := range t.testvalues() {
    				r := t.trunc(op.eval(x))
    				eqn := fmt.Sprintf("%s %s_%s != %d", op.name, t.name, valname(x), r)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:25 UTC 2023
    - 4.8K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/syntax/nodes.go

    	// X.(type)
    	// Lhs := X.(type)
    	TypeSwitchGuard struct {
    		Lhs *Name // nil means no Lhs :=
    		X   Expr  // X.(type)
    		expr
    	}
    
    	Operation struct {
    		Op   Operator
    		X, Y Expr // Y == nil means unary expression
    		expr
    	}
    
    	// Fun(ArgList[0], ArgList[1], ...)
    	CallExpr struct {
    		Fun     Expr
    		ArgList []Expr // nil means no arguments
    		HasDots bool   // last argument is followed by ...
    		expr
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 20 14:52:38 UTC 2023
    - 9K bytes
    - Viewed (0)
Back to top