Changeset 846 for trunk/src/corelib/tools/qhash.cpp
- Timestamp:
- May 5, 2011, 5:36:53 AM (14 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
/branches/vendor/nokia/qt/4.7.2 (added) merged: 845 /branches/vendor/nokia/qt/current merged: 844 /branches/vendor/nokia/qt/4.6.3 removed
- Property svn:mergeinfo changed
-
trunk/src/corelib/tools/qhash.cpp
r769 r846 1 1 /**************************************************************************** 2 2 ** 3 ** Copyright (C) 201 0Nokia Corporation and/or its subsidiary(-ies).3 ** Copyright (C) 201 Nokia Corporation and/or its subsidiary(-ies). 4 4 ** All rights reserved. 5 5 ** Contact: Nokia Corporation ([email protected]) … … 65 65 { 66 66 uint h = 0; 67 uint g;68 67 69 68 while (n--) { 70 69 h = (h << 4) + *p++; 71 g = h & 0xf0000000; 72 h ^= g >> 23; 73 h &= ~g; 70 h ^= (h & 0xf0000000) >> 23; 71 h &= 0x0fffffff; 74 72 } 75 73 return h; … … 79 77 { 80 78 uint h = 0; 81 uint g;82 79 83 80 while (n--) { 84 81 h = (h << 4) + (*p++).unicode(); 85 g = h & 0xf0000000; 86 h ^= g >> 23; 87 h &= ~g; 82 h ^= (h & 0xf0000000) >> 23; 83 h &= 0x0fffffff; 88 84 } 89 85 return h; … … 848 844 */ 849 845 846 847 848 849 850 850 851 /*! \fn void QHash::clear() 851 852 … … 1666 1667 operator<<(). 1667 1668 1668 \sa { Format of the QDataStream operators}1669 \sa {s} 1669 1670 */ 1670 1671 … … 1677 1678 operator>>(). 1678 1679 1679 \sa { Format of the QDataStream operators}1680 \sa {s} 1680 1681 */ 1681 1682
Note:
See TracChangeset
for help on using the changeset viewer.