Examples of xor()


Examples of com.cburch.logisim.data.Value.xor()

  }
 
  static Value computeOddParity(Value[] inputs, int numInputs) {
    Value ret = inputs[0];
    for (int i = 1; i < numInputs; i++) {
      ret = ret.xor(inputs[i]);
    }
    return ret;
  }
 
  static Value computeExactlyOne(Value[] inputs, int numInputs) {
View Full Code Here

Examples of com.cburch.logisim.data.Value.xor()

    }

    static Value computeOddParity(Value[] inputs, int numInputs) {
        Value ret = inputs[0];
        for (int i = 1; i < numInputs; i++) {
            ret = ret.xor(inputs[i]);
        }
        return ret;
    }

    static Value computeExactlyOne(Value[] inputs, int numInputs) {
View Full Code Here

Examples of com.googlecode.javaewah.EWAHCompressedBitmap.xor()

      XorCompressedBitmap xb = (XorCompressedBitmap) r;
      EWAHCompressedBitmap out = xb.bitmap;
      for (;;) {
        r = xb.xorBitmap.bitmapContainer;
        if (r instanceof EWAHCompressedBitmap) {
          out = out.xor((EWAHCompressedBitmap) r);
          bitmapContainer = out;
          return out;
        }
        xb = (XorCompressedBitmap) r;
        out = out.xor(xb.bitmap);
View Full Code Here

Examples of com.googlecode.javaewah.EWAHCompressedBitmap.xor()

          out = out.xor((EWAHCompressedBitmap) r);
          bitmapContainer = out;
          return out;
        }
        xb = (XorCompressedBitmap) r;
        out = out.xor(xb.bitmap);
      }
    }

    /** @return the flags associated with the bitmap */
    int getFlags() {
View Full Code Here

Examples of com.sun.codemodel.JVar.xor()

          // LOG.info("jFieldVar: " + jFieldVar.name());
          // LOG.info(" is " + jFieldVar.type().fullName());
          // LOG.info(" + " + tempVariableForDoubleChecks.name());
          // LOG.info(" + " + doubleClass.boxify().fullName());
          hashCodeMethod.body().assign(tempVariableForDoubleChecks, doubleClass.boxify().staticInvoke("doubleToLongBits").arg(jFieldVar));
          tenaryCond = JExpr.cast(implClass.owner().INT, tempVariableForDoubleChecks.xor(tempVariableForDoubleChecks.shrz(JExpr
              .direct("32"))));
        } else {
          // if field is primitive:
          // ==> result = prime * result + field;
          tenaryCond = JExpr.ref(jFieldVar.name());
View Full Code Here

Examples of ij.gui.ShapeRoi.xor()

    if (roi instanceof ShapeRoi)
      s1 = (ShapeRoi)roi;
    else
      s1 = new ShapeRoi(roi);
    s2 = new ShapeRoi(new Roi(0,0, width, height));
    setRoi(s1.xor(s2));
    fill(getMask());
    setMask(m);
    setRoi(r);
  }
View Full Code Here

Examples of java.math.BigInteger.xor()

            boolean lsb = V.testBit(0);
            V = V.shiftRight(1);
            if (lsb)
            {
                V = V.xor(R);
            }
        }

        return Z;
    }
View Full Code Here

Examples of java.math.BigInteger.xor()

  BigInteger evalExclusiveOrExpression(AstNode exprAst) {
    int noChildren = exprAst.getNumberOfChildren();
    BigInteger result = evalToInt(exprAst.getChild(0));
    for(int i = 2; i < noChildren; i+=2){
      AstNode operand = exprAst.getChild(i);
      result = result.xor(evalToInt(operand));
    }

    return result;
  }
View Full Code Here

Examples of java.math.BigInteger.xor()

                if (az.testBit(i))
                {
                    // If the coefficient of x^i in a(z) equals 1, b(z) is added
                    // to c(z)
                    cz = cz.xor(bz);
                }
            }
            return new ECFieldElement.F2m(m, this.k1, this.k2, this.k3, cz);
        }
View Full Code Here

Examples of java.util.BitSet.xor()

    return true;
  }
 
  public static Int128 XOR(Int128 a, Int128 b) {
    BitSet xor_bit_set = (BitSet) a.getBitSet().clone();
    xor_bit_set.xor(b.getBitSet());
    return new Int128(xor_bit_set);
  }
 
  /**
   * Retrun bigger rang from bit set.
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.