|
|
@@ -12,7 +12,16 @@
|
|
|
|
|
|
class EXPCL_PANDAEXPRESS HashVal {
|
|
|
public:
|
|
|
- uint get_value(int val) const {
|
|
|
+ INLINE HashVal(void) {
|
|
|
+ hv[0] = hv[1] = hv[2] = hv[3] = 0;
|
|
|
+ }
|
|
|
+ INLINE bool operator == (const HashVal &other) const {
|
|
|
+ return (hv[0] == other.hv[0] &&
|
|
|
+ hv[1] == other.hv[1] &&
|
|
|
+ hv[2] == other.hv[2] &&
|
|
|
+ hv[3] == other.hv[3]);
|
|
|
+ }
|
|
|
+ INLINE uint get_value(int val) const {
|
|
|
if (val < 4 && val >= 0)
|
|
|
return hv[val];
|
|
|
}
|