diff options
author | Jean Christophe Beyler <jean.christophe.beyler@intel.com> | 2014-01-16 09:00:18 -0800 |
---|---|---|
committer | Jean Christophe Beyler <jean.christophe.beyler@intel.com> | 2014-01-17 13:37:14 -0800 |
commit | ad0d30a2a2141aa0e9da9e97993ce20e4d8e056e (patch) | |
tree | 90af62fbfc9a05b8d29bdf54d96f128183bce92b /runtime/indirect_reference_table.cc | |
parent | 1776f50b5b99782278d7f3d354fa956d9066c903 (diff) | |
download | art-ad0d30a2a2141aa0e9da9e97993ce20e4d8e056e.zip art-ad0d30a2a2141aa0e9da9e97993ce20e4d8e056e.tar.gz art-ad0d30a2a2141aa0e9da9e97993ce20e4d8e056e.tar.bz2 |
Update to the BitVector Implementation
IsBitSet:
- If the index requested is above the size, return false.
ClearBit:
- If the index requested is above the size, ignore.
Added SameBitsSet:
- Check the bits set disregarding size and expandable.
Intersect and Union:
- removed the requirement of same size.
- handles case where the sizes are not the same.
Added Subtract between BitVectors.
SetInitialBits:
- Now requests expansion if above the bits available.
- Clears upper bits.
Added GetHighestBitSet.
ClearBit:
- If we clear above the size, it is fine, it has not been set yet.
Copy:
- Supposes it is well allocated.
- It used to just copy what was available in destination without checking source's size.
- Now actually allocate the destination to make sure it holds enough space.
- Set parameter to const.
General:
- Moved sizeof(uint32_t) to sizeof(*storage_) for future maintenance.
Change-Id: Iebb214632482c46807deca957f5b6dc892a61a84
Diffstat (limited to 'runtime/indirect_reference_table.cc')
0 files changed, 0 insertions, 0 deletions