Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 45 for negation_0 (0.16 sec)

  1. src/go/build/constraint/expr.go

    					clause += ","
    				}
    				clause += lit.String()
    			}
    			line += " " + clause
    		}
    		lines = append(lines, line)
    	}
    
    	return lines, nil
    }
    
    // pushNot applies DeMorgan's law to push negations down the expression,
    // so that only tags are negated in the result.
    // (It applies the rewrites !(X && Y) => (!X || !Y) and !(X || Y) => (!X && !Y).)
    func pushNot(x Expr, not bool) Expr {
    	switch x := x.(type) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 12:02:03 UTC 2023
    - 14.2K bytes
    - Viewed (0)
  2. internal/s3select/sql/parser.go

    }
    
    // AndCondition represents logical conjunction of clauses
    type AndCondition struct {
    	Condition []*Condition `parser:"@@ ( \"AND\" @@ )*"`
    }
    
    // Condition represents a negation or a condition operand
    type Condition struct {
    	Operand *ConditionOperand `parser:"  @@"`
    	Not     *Condition        `parser:"| \"NOT\" @@"`
    }
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Jan 18 07:03:17 UTC 2024
    - 12.9K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/ssa/_gen/RISCV64.rules

    // Subtraction from zero.
    (SUB  (MOVDconst [0]) x) => (NEG x)
    (SUBW (MOVDconst [0]) x) => (NEGW x)
    
    // Fold negation into subtraction.
    (NEG (SUB x y)) => (SUB y x)
    (NEG <t> s:(ADDI [val] (SUB x y))) && s.Uses == 1 && is32Bit(-val) => (ADDI [-val] (SUB <t> y x))
    
    // Double negation.
    (NEG (NEG x)) => x
    
    // Addition of zero or two constants.
    (ADDI [0] x) => x
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 07 14:57:07 UTC 2024
    - 40.3K bytes
    - Viewed (0)
  4. guava/src/com/google/common/collect/ComparisonChain.java

      /**
       * Discouraged synonym for {@link #compareFalseFirst}.
       *
       * @deprecated Use {@link #compareFalseFirst}; or, if the parameters passed are being either
       *     negated or reversed, undo the negation or reversal and use {@link #compareTrueFirst}.
       * @since 19.0
       */
      @Deprecated
      public final ComparisonChain compare(Boolean left, Boolean right) {
        return compareFalseFirst(left, right);
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 21 17:28:11 UTC 2022
    - 11.2K bytes
    - Viewed (0)
  5. src/crypto/internal/edwards25519/edwards25519.go

    	XplusYsq.Add(&p.X, &p.Y)
    	XplusYsq.Square(&XplusYsq)
    
    	v.Y.Add(&YY, &XX)
    	v.Z.Subtract(&YY, &XX)
    
    	v.X.Subtract(&XplusYsq, &v.Y)
    	v.T.Subtract(&ZZ2, &v.Z)
    	return v
    }
    
    // Negation.
    
    // Negate sets v = -p, and returns v.
    func (v *Point) Negate(p *Point) *Point {
    	checkInitialized(p)
    	v.x.Negate(&p.x)
    	v.y.Set(&p.y)
    	v.z.Set(&p.z)
    	v.t.Negate(&p.t)
    	return v
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 13 19:21:54 UTC 2023
    - 10.3K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/ssa/shortcircuit.go

    	if b.Kind != BlockIf {
    		return false
    	}
    	// Look for control values of the form Copy(Not(Copy(Phi(const, ...)))).
    	// Those must be the only values in the b, and they each must be used only by b.
    	// Track the negations so that we can swap successors as needed later.
    	ctl := b.Controls[0]
    	nval := 1 // the control value
    	var swap int64
    	for ctl.Uses == 1 && ctl.Block == b && (ctl.Op == OpCopy || ctl.Op == OpNot) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 03 17:47:02 UTC 2022
    - 12.6K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/math/IntMath.java

       * narrowly) faster than the straightforward ternary expression.
       */
      @VisibleForTesting
      static int lessThanBranchFree(int x, int y) {
        // The double negation is optimized away by normal Java, but is necessary for GWT
        // to make sure bit twiddling works as expected.
        return ~~(x - y) >>> (Integer.SIZE - 1);
      }
    
      /**
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Feb 07 17:50:39 UTC 2024
    - 23.5K bytes
    - Viewed (0)
  8. guava/src/com/google/common/math/IntMath.java

       * narrowly) faster than the straightforward ternary expression.
       */
      @VisibleForTesting
      static int lessThanBranchFree(int x, int y) {
        // The double negation is optimized away by normal Java, but is necessary for GWT
        // to make sure bit twiddling works as expected.
        return ~~(x - y) >>> (Integer.SIZE - 1);
      }
    
      /**
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Feb 07 17:50:39 UTC 2024
    - 23.5K bytes
    - Viewed (0)
  9. src/text/template/doc.go

    	js
    		Returns the escaped JavaScript equivalent of the textual
    		representation of its arguments.
    	len
    		Returns the integer length of its argument.
    	not
    		Returns the boolean negation of its single argument.
    	or
    		Returns the boolean OR of its arguments by returning the
    		first non-empty argument or the last argument, that is,
    		"or x y" behaves as "if x then x else y".
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Feb 24 21:59:12 UTC 2024
    - 17.9K bytes
    - Viewed (0)
  10. src/text/template/funcs.go

    func or(arg0 reflect.Value, args ...reflect.Value) reflect.Value {
    	panic("unreachable") // implemented as a special case in evalCall
    }
    
    // not returns the Boolean negation of its argument.
    func not(arg reflect.Value) bool {
    	return !truth(arg)
    }
    
    // Comparison.
    
    // TODO: Perhaps allow comparison between signed and unsigned integers.
    
    var (
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 22:23:55 UTC 2024
    - 20.9K bytes
    - Viewed (0)
Back to top