Changeset 40052 in vbox for trunk/src/VBox/Runtime/include
- Timestamp:
- Feb 9, 2012 3:36:00 PM (13 years ago)
- svn:sync-xref-src-repo-rev:
- 76179
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/include/internal/strhash.h
r36597 r40052 76 76 } 77 77 78 78 79 /** 79 80 * Incremental hashing. … … 90 91 } 91 92 93 /** 94 * Incremental hashing with length limitation. 95 */ 96 DECLINLINE(uint32_t) sdbmIncN(const char *psz, size_t cchMax, uint32_t uHash) 97 { 98 uint8_t *pu8 = (uint8_t *)psz; 99 int c; 100 101 while ((c = *pu8++) && cchMax-- > 0) 102 uHash = c + (uHash << 6) + (uHash << 16) - uHash; 103 104 return uHash; 105 } 106 92 107 93 108 #endif
Note:
See TracChangeset
for help on using the changeset viewer.