Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset d5224d4 in mainline


Ignore:
Timestamp:
2021-03-27T05:55:36Z (2 weeks ago)
Author:
GitHub <noreply@…>
Parents:
dbf1be5 (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@…> (2021-03-27 05:55:36)
git-committer:
GitHub <noreply@…> (2021-03-27 05:55:36)
Message:

Merge b3c169e6fad6694313bf7154be767a485d10551e into dbf1be5be4d7ced56dbc0ea7ab6a77eb022a09fa

Location:
uspace/lib
Files:
9 added
2 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/include/adt/hash.h

    rdbf1be5 rd5224d4  
    111111}
    112112
     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 */
     120static 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
    113133#endif
  • uspace/lib/meson.build

    rdbf1be5 rd5224d4  
    5454        'clui',
    5555        'compress',
     56        'conf',
    5657        'cpp',
    5758        'crypto',
Note: See TracChangeset for help on using the changeset viewer.