Changeset 1b20da0 in mainline for kernel/generic/include/adt/hash.h
- Timestamp:
- 2018-02-28T17:52:03Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 3061bc1
- Parents:
- df6ded8
- git-author:
- Jiří Zárevúcky <zarevucky.jiri@…> (2018-02-28 17:26:03)
- git-committer:
- Jiří Zárevúcky <zarevucky.jiri@…> (2018-02-28 17:52:03)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/include/adt/hash.h
rdf6ded8 r1b20da0 75 75 76 76 /** Produces a uniform hash affecting all output bits from the skewed input. */ 77 static inline size_t hash_mix(size_t hash) 77 static inline size_t hash_mix(size_t hash) 78 78 { 79 79 #ifdef __32_BITS__ … … 87 87 88 88 /** Use to create a hash from multiple values. 89 * 89 * 90 90 * Typical usage: 91 91 * @code … … 101 101 static inline size_t hash_combine(size_t seed, size_t hash) 102 102 { 103 /* 103 /* 104 104 * todo: use Bob Jenkin's proper mixing hash pass: 105 105 * http://burtleburtle.net/bob/c/lookup3.c
Note:
See TracChangeset
for help on using the changeset viewer.