- TTEntry() {}
- TTEntry(uint32_t k, Value v, ValueType t, Depth d, Move m, int generation)
- : key_ (k), data((m & 0x1FFFF) | (t << 20) | (generation << 23)),
- value_(int16_t(v)), depth_(int16_t(d)) {}
-
- uint32_t key() const { return key_; }
- Depth depth() const { return Depth(depth_); }
+ void save(uint32_t k, Value v, ValueType t, Depth d, Move m, int g, Value statV, Value kd) {
+
+ key32 = k;
+ data = (m & 0x1FFFF) | (t << 20) | (g << 23);
+ value16 = int16_t(v);
+ depth16 = int16_t(d);
+ staticValue = int16_t(statV);
+ kingDanger = int16_t(kd);
+ }
+
+ uint32_t key() const { return key32; }
+ Depth depth() const { return Depth(depth16); }