(s: &[u8])
| 62 | } |
| 63 | |
| 64 | fn sdbm_hash(s: &[u8]) -> u32 { |
| 65 | let mut hash: u32 = 0; |
| 66 | for &c in s { |
| 67 | hash = (c as u32).wrapping_add(hash.wrapping_shl(6)).wrapping_add(hash.wrapping_shl(16)).wrapping_sub(hash); |
| 68 | } |
| 69 | hash |
| 70 | } |
| 71 | |
| 72 | fn sdbm_hash_lower(s: &[u8]) -> u32 { |
| 73 | let mut hash: u32 = 0; |
no outgoing calls
no test coverage detected