16 state += ( state << 16 );
17 state ^= ( state >> 13 );
18 state += ( state << 4 );
19 state ^= ( state >> 7 );
20 state += ( state << 10 );
21 state ^= ( state >> 5 );
22 state += ( state << 8 );
23 state ^= ( state >> 16 );
31 typedef boost::low_bits_mask_t<32> mask_t;
32 state =
mix32( state,
uint32_t( extra & mask_t::sig_bits_fast ) );
33 return mix32( state,
uint32_t( ( extra >> 32 ) & mask_t::sig_bits_fast ) );
40 for (
size_t i = 0; i < s.
size() / 4; ++i ) {
44 state =
mix32( state, x );
uint32_t mixString(uint32_t state, const std::string &extra)
mix some 'extra' entropy into 'state' and return result
uint32_t mix(uint32_t state)
Create a hash with a large avalanche effect from a 32 bit integer.
unsigned long long uint64_t
uint32_t mix32(uint32_t state, uint32_t extra)
mix some 'extra' entropy into 'state' and return result
uint32_t mix64(uint32_t state, uint64_t extra)
mix some 'extra' entropy into 'state' and return result
Helper functions to set/get the application return code.