Sha256: ae6d50a9e3dc74d604666eb9b6f8ada70d23b8c4de4ddfe4a058df86eeef3cde

Contents?: true

Size: 415 Bytes

Versions: 11

Compression:

Stored size: 415 Bytes

Contents

#ifndef CUMO_HASH_COMBINE_H
#define CUMO_HASH_COMBINE_H

#include <cstddef>

namespace cumo {
namespace internal {

// Borrowed from boost::hash_combine
//
// TODO(sonots): hash combine in 64bit
inline void HashCombine(std::size_t& seed, std::size_t hash_value) { seed ^= hash_value + 0x9e3779b9 + (seed << 6) + (seed >> 2); }

}  // namespace internal
}  // namespace cumo

#endif /* ifndef CUMO_HASH_COMBINE_H */

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
cumo-0.4.3 ext/cumo/include/cumo/hash_combine.hpp
cumo-0.4.2 ext/cumo/include/cumo/hash_combine.hpp
cumo-0.4.1 ext/cumo/include/cumo/hash_combine.hpp
cumo-0.4.0 ext/cumo/include/cumo/hash_combine.hpp
cumo-0.3.5 ext/cumo/include/cumo/hash_combine.hpp
cumo-0.3.4 ext/cumo/include/cumo/hash_combine.hpp
cumo-0.3.3 ext/cumo/include/cumo/hash_combine.hpp
cumo-0.3.2 ext/cumo/include/cumo/hash_combine.hpp
cumo-0.3.1 ext/cumo/include/cumo/hash_combine.hpp
cumo-0.3.0 ext/cumo/include/cumo/hash_combine.hpp
cumo-0.3.0.pre1 ext/cumo/include/cumo/hash_combine.hpp