Changeset 14c9aa6 in mainline for kernel/generic/include/adt/hash.h
- Timestamp:
- 2012-07-27T13:40:19Z (12 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 0949b7a
- Parents:
- 4ec9ea41
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/include/adt/hash.h
r4ec9ea41 r14c9aa6 37 37 #include <stdint.h> 38 38 39 /** Produces a uniform hash affecting all output bits from the skewed input. 40 */ 39 /** Produces a uniform hash affecting all output bits from the skewed input. */ 41 40 static inline uint32_t hash_mix32(uint32_t hash) 42 41 { … … 55 54 } 56 55 57 /** Produces a uniform hash affecting all output bits from the skewed input. 58 */ 56 /** Produces a uniform hash affecting all output bits from the skewed input. */ 59 57 static inline uint64_t hash_mix64(uint64_t hash) 60 58 { … … 68 66 hash = hash * 0x27d4eb2d; 69 67 hash = hash ^ (hash >> 15); 68 return hash; 70 69 } 71 70 72 /** Produces a uniform hash affecting all output bits from the skewed input. 73 */ 71 /** Produces a uniform hash affecting all output bits from the skewed input. */ 74 72 static inline size_t hash_mix(size_t hash) 75 73 {
Note:
See TracChangeset
for help on using the changeset viewer.