/// an arbitrary precision integer) and the remaining VectorBits upper bits
/// encode the vector length, offset by one.
///
- /// 31--------------16-----------8-------------0
+ /// 32--------------16-----------8-------------0
/// | Vector length | Precision | Simple type |
/// | | Vector element |
///
(isExtended() && isVector() && getSizeInBits()==128));
}
+ /// isByteSized - Return true if the bit size is a multiple of 8.
+ inline bool isByteSized() const {
+ return (getSizeInBits() & 7) == 0;
+ }
+
+ /// isRound - Return true if the size is a power-of-two number of bytes.
+ inline bool isRound() const {
+ unsigned BitSize = getSizeInBits();
+ return BitSize >= 8 && !(BitSize & (BitSize - 1));
+ }
/// bitsGT - Return true if this has more bits than VT.
inline bool bitsGT(MVT VT) const {