Changeset 30611 in vbox
- Timestamp:
- Jul 5, 2010 12:53:59 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/common/string/strspace.cpp
r28800 r30611 84 84 this is one of the algorithms used in berkeley db (see sleepycat) and 85 85 elsewhere. */ 86 inline uint32_tsdbm(const char *str, size_t *pcch)86 DECLINLINE(uint32_t) sdbm(const char *str, size_t *pcch) 87 87 { 88 88 uint8_t *pu8 = (uint8_t *)str; … … 93 93 hash = c + (hash << 6) + (hash << 16) - hash; 94 94 95 *pcch = (uintptr_t)pu8 - (uintptr_t)str ;95 *pcch = (uintptr_t)pu8 - (uintptr_t)str - 1; 96 96 return hash; 97 97 } … … 120 120 pStr->pList = pMatch->pList; 121 121 pMatch->pList = pStr; 122 return false;122 return true; 123 123 } 124 124 RT_EXPORT_SYMBOL(RTStrSpaceInsert);
Note:
See TracChangeset
for help on using the changeset viewer.