Changeset 156792 in webkit
- Timestamp:
- Oct 2, 2013 1:34:30 PM (10 years ago)
- Location:
- trunk/Source/WTF
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WTF/ChangeLog
r156775 r156792 1 2013-10-02 Nadav Rotem <nrotem@apple.com> 2 3 Eliminate a branch in FastBitVector setAndCheck, make it vectorizable. 4 https://bugs.webkit.org/show_bug.cgi?id=122229 5 6 Reviewed by Geoffrey Garen. 7 8 The CPU is unlikely to predict the branch in setAndCheck. I changed the code to use conditional instructions. 9 10 * wtf/FastBitVector.h: 11 (WTF::FastBitVector::setAndCheck): 12 1 13 2013-10-02 Anders Carlsson <andersca@apple.com> 2 14 -
trunk/Source/WTF/wtf/FastBitVector.h
r156128 r156792 102 102 ASSERT(m_numBits == other.m_numBits); 103 103 for (unsigned i = arrayLength(); i--;) { 104 if (m_array[i] == other.m_array[i]) 105 continue; 104 changed |= m_array[i] != other.m_array[i]; 106 105 m_array[i] = other.m_array[i]; 107 changed = true;108 106 } 109 107 return changed;
Note: See TracChangeset
for help on using the changeset viewer.