Examples of shiftLeft()


Examples of com.hp.hpl.jena.tdb.index.bplustree.BPTreeRecords.shiftLeft()

    {
        BPTreeRecords bpr1 = make() ;
        BPTreeRecords bpr2 = make() ;
       
        insert(bpr1, 10) ;
        Record r = bpr2.shiftLeft(bpr1, null) ;
       
        assertTrue(Record.keyEQ(r, RecordLib.intToRecord(10))) ;
        contains(bpr1) ;
        contains(bpr2, 10) ;
        bpr1.release() ;
View Full Code Here

Examples of com.sun.enterprise.admin.jmx.remote.internal.Shifter.shiftLeft()

 
  private MBeanServerRequestMessage removeVersion(MBeanServerRequestMessage from) {
    final int id = from.getMethodId();
    final Subject s = from.getDelegationSubject();
    final Shifter sh = new Shifter(from.getParams());
    sh.shiftLeft();
    final Object[] np = sh.state();
    return ( new MBeanServerRequestMessage(id, np, s) );
  }
  private boolean isCompatible(Version cv) {
    return ( matcher.match(cv, sv) );
View Full Code Here

Examples of java.math.BigInteger.shiftLeft()

                return first;
            // BigInteger.shiftLeft() succumbs to a stack overflow if count
            // is Integer.MIN_VALUE, so...
            if (count == Integer.MIN_VALUE)
                return n.signum() >= 0 ? Fixnum.ZERO : Fixnum.MINUS_ONE;
            return number(n.shiftLeft(count));
        }
        if (second instanceof Bignum) {
            BigInteger count = ((Bignum)second).getValue();
            if (count.signum() > 0)
                throw new ConditionThrowable(new LispError("can't represent result of left shift"));
View Full Code Here

Examples of java.math.BigInteger.shiftLeft()

        padBytes[i] = b[0];
      }
    }

    rndInt = new BigInteger(1, padBytes);
    rndInt = rndInt.shiftLeft( (inByteLen + 1) * 8);
    result = BigInteger.valueOf(type);
    result = result.shiftLeft( (padLen - 2) * 8);
    result = result.or(rndInt);
    result = result.or(input);

View Full Code Here

Examples of java.math.BigInteger.shiftLeft()

        while(!((r0.equals(ECConstants.ZERO)) && (r1.equals(ECConstants.ZERO))))
        {
            // If r0 is odd
            if (r0.testBit(0))
            {
                u[i] = (byte) ECConstants.TWO.subtract((r0.subtract(r1.shiftLeft(1))).mod(ECConstants.FOUR)).intValue();

                // r0 = r0 - u[i]
                if (u[i] == 1)
                {
                    r0 = r0.clearBit(0);
View Full Code Here

Examples of java.math.BigInteger.shiftLeft()

                    if (j == n)
                    {
                        Vj = Vj.mod(ONE.shiftLeft(b));
                    }

                    W = W.add(Vj.shiftLeft(exp));
                }

// 11.3 X = W + 2^(L–1). Comment: 0 ≤ W < 2L–1; hence, 2L–1 ≤ X < 2L.
                BigInteger X = W.add(ONE.shiftLeft(L - 1));
View Full Code Here

Examples of java.math.BigInteger.shiftLeft()

                    bigValue = null;
                    value = 0;
                }
                else
                {
                    bigValue = bigValue.shiftLeft(7);
                }
            }
        }

        this.identifier = objId.toString();
View Full Code Here

Examples of java.math.BigInteger.shiftLeft()

        BigInteger big = BigInteger.ZERO;
        for (int i = 0; i < str.length(); i++)
        {
            int charpos = 16 * (sigchars - (i + 1));
            BigInteger charbig = BigInteger.valueOf(str.charAt(i) & 0xFFFF);
            big = big.or(charbig.shiftLeft(charpos));
        }
        return big;
    }

    /**
 
View Full Code Here

Examples of java.math.BigInteger.shiftLeft()

        BigInteger big = BigInteger.ZERO;
        for (int i = 0; i < str.length(); i++)
        {
            int charpos = 16 * (sigchars - (i + 1));
            BigInteger charbig = BigInteger.valueOf(str.charAt(i) & 0xFFFF);
            big = big.or(charbig.shiftLeft(charpos));
        }
        return big;
    }

    /**
 
View Full Code Here

Examples of java.math.BigInteger.shiftLeft()

        int result = 0;
        BigInteger p = ONE;
        while (p.compareTo(a) < 0)
        {
            result++;
            p = p.shiftLeft(1);
        }
        return result;
    }

    /**
 
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.