Changeset 37a90a7 in mainline
- Timestamp:
- 2020-12-31T22:30:14Z (3 weeks ago)
- Parents:
- e037cf37 (diff), b3c169e6 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - git-author:
- Matthieu Riolo <matthieu.riolo@…> (2020-12-31 22:30:14)
- git-committer:
- GitHub <noreply@…> (2020-12-31 22:30:14)
- Location:
- uspace/lib
- Files:
-
- 9 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/include/adt/hash.h
re037cf37 r37a90a7 111 111 } 112 112 113 /** Calculate hash of NULL-terminated string 114 * 115 * TODO Modify also same file in kernel subtree? 116 * 117 * @param[in] str NULL-terminated string 118 * @return hash of the given string 119 */ 120 static inline size_t hash_string(const char *str) 121 { 122 size_t hash = 0; 123 if (str != NULL) { 124 char c; 125 while ((c = *str++) != 0) { 126 hash = hash_combine(hash, c); 127 } 128 } 129 130 return hash; 131 } 132 113 133 #endif -
uspace/lib/meson.build
re037cf37 r37a90a7 53 53 'clui', 54 54 'compress', 55 'conf', 55 56 'cpp', 56 57 'crypto',
Note: See TracChangeset
for help on using the changeset viewer.