Changeset 35177 in webkit for trunk/JavaScriptCore/kjs/ustring.cpp
- Timestamp:
- Jul 14, 2008, 7:17:56 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/ustring.cpp
r35027 r35177 314 314 // Paul Hsieh's SuperFastHash 315 315 // http://www.azillionmonkeys.com/qed/hash.html 316 unsigned UString::Rep::computeHash(const char* s )316 unsigned UString::Rep::computeHash(const char* s, int l) 317 317 { 318 318 // This hash is designed to work on 16-bit chunks at a time. But since the normal case … … 322 322 uint32_t hash = PHI; 323 323 uint32_t tmp; 324 size_t l = strlen(s);325 324 326 325 size_t rem = l & 1;
Note:
See TracChangeset
for help on using the changeset viewer.