coins.ssa
クラス BitVector

java.lang.Object
  |
  +--coins.ssa.BitVector

public class BitVector
extends java.lang.Object

Bit vector for SSA optimization. Original code is "coins.flow.BitVector.java".


コンストラクタの概要
(パッケージプライベート) BitVector(int elementsNum)
          Constructor
 
メソッドの概要
(パッケージプライベート)  int getBit(int pInx)
          Return specified bit.
(パッケージプライベート)  int getBitLength()
          Return the bit length of the current bit vector.
(パッケージプライベート)  long[] getVectorWord()
          Return the bits.
(パッケージプライベート)  int getWordLength()
          Return the word length of the current bit vector.
(パッケージプライベート)  boolean isEmpty()
          isEmpty:

If all bits in current bit vector are unset, it mean "Empty".
(パッケージプライベート)  void resetBit(int pInx)
          Reset specified bit.
(パッケージプライベート)  void setBit(int pInx)
          Set specified bit.
(パッケージプライベート)  void vectorAnd(BitVector pOperand2, BitVector pResult)
          Logical AND for bit vector.
(パッケージプライベート)  void vectorCopy(BitVector pResult)
          Copy the current bit vector to another bit vector.
(パッケージプライベート)  boolean vectorEqual(BitVector pOperand2)
          Compare two bit vectors.
(パッケージプライベート)  void vectorNot(BitVector pResult)
          Logical NOT for bit vector.
(パッケージプライベート)  void vectorOr(BitVector pOperand2, BitVector pResult)
          Logical OR for bit vector.
(パッケージプライベート)  void vectorReset()
          Reset all bits in current bit vector.
(パッケージプライベート)  void vectorSub(BitVector pOperand2, BitVector pResult)
          SUB for bit vector.
(パッケージプライベート)  void vectorXor(BitVector pOperand2, BitVector pResult)
          Logical XOR for bit vector.
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

BitVector

BitVector(int elementsNum)
Constructor

パラメータ:
elementsNum - number of elements
メソッドの詳細

setBit

void setBit(int pInx)
Set specified bit.

パラメータ:
pInx - bit index number

resetBit

void resetBit(int pInx)
Reset specified bit.

パラメータ:
pInx - bit index number

getBit

int getBit(int pInx)
Return specified bit.

パラメータ:
pInx - bit index number
戻り値:
The bit specified by the parameter.

vectorAnd

void vectorAnd(BitVector pOperand2,
               BitVector pResult)
Logical AND for bit vector.

パラメータ:
pOperand2 - operand bit vector.
pResult - bit vector which is stored the result.

vectorOr

void vectorOr(BitVector pOperand2,
              BitVector pResult)
Logical OR for bit vector.

パラメータ:
pOperand2 - operand bit vector.
pResult - bit vector which is stored the result.

vectorXor

void vectorXor(BitVector pOperand2,
               BitVector pResult)
Logical XOR for bit vector.

パラメータ:
pOperand2 - operand bit vector.
pResult - bit vector which is stored the result.

vectorNot

void vectorNot(BitVector pResult)
Logical NOT for bit vector.

パラメータ:
pResult - bit vector which is stored the result.

vectorSub

void vectorSub(BitVector pOperand2,
               BitVector pResult)
SUB for bit vector.

パラメータ:
pOperand2 - operand bit vector.
pResult - bit vector which is stored the result.

vectorCopy

void vectorCopy(BitVector pResult)
Copy the current bit vector to another bit vector.

パラメータ:
pResult - bit vector which is stored the result.

vectorEqual

boolean vectorEqual(BitVector pOperand2)
Compare two bit vectors.

パラメータ:
pOperand2 - operand bit vector.
戻り値:
If two bit vectors are equal, return "true". otherwise "false".

vectorReset

void vectorReset()
Reset all bits in current bit vector.


isEmpty

boolean isEmpty()
isEmpty:

If all bits in current bit vector are unset, it mean "Empty".

戻り値:
If current bit vector is "Empty", return "true". otherwise "false".

getBitLength

int getBitLength()
Return the bit length of the current bit vector.

戻り値:
Bit length of current bit vector.

getWordLength

int getWordLength()
Return the word length of the current bit vector. Word length is depend on machines.

戻り値:
Bit length of current bit vector.

getVectorWord

long[] getVectorWord()
Return the bits.

戻り値:
Array of long