34#ifndef _CHOMP_STRUCT_INTHASH_H_
35#define _CHOMP_STRUCT_INTHASH_H_
48 return static_cast<int_t> (number);
54 return static_cast<int_t> (number ^ 0xFA5A75A7ul) << 8;
61#define DEFHASHKEYS(type) \
62inline int_t hashkey1 (const type &number) \
63{ return hashkey1 (static_cast<unsigned long> (number)); } \
64inline int_t hashkey2 (const type &number) \
65{ return hashkey2 (static_cast<unsigned long> (number)); }
#define DEFHASHKEYS(type)
This macro is used to define a hash key for any type that can be cast onto an unsigned inteter type,...
int_t hashkey2(const unsigned long &number)
The second hash key for an unsigned int number.
int_t hashkey1(const unsigned long &number)
The first hash key for an unsigned int number.
int int_t
Index type for indexing arrays, counting cubes, etc.