Use pre-increment also for native types

Now that we use pre-increment on enums, it
make sense, for code style uniformity, to
swith to pre-increment also for native types,
although there is no speed difference.

No functional change.
This commit is contained in:
Kojirion
2013-09-15 09:11:29 +02:00
committed by Marco Costalba
parent 7a1ff6d8ff
commit a71209868b
11 changed files with 24 additions and 24 deletions

View File

@@ -73,7 +73,7 @@ const TTEntry* TranspositionTable::probe(const Key key) const {
const TTEntry* tte = first_entry(key);
uint32_t key32 = key >> 32;
for (unsigned i = 0; i < ClusterSize; i++, tte++)
for (unsigned i = 0; i < ClusterSize; ++i, tte++)
if (tte->key() == key32)
return tte;
@@ -97,7 +97,7 @@ void TranspositionTable::store(const Key key, Value v, Bound b, Depth d, Move m,
tte = replace = first_entry(key);
for (unsigned i = 0; i < ClusterSize; i++, tte++)
for (unsigned i = 0; i < ClusterSize; ++i, tte++)
{
if (!tte->key() || tte->key() == key32) // Empty or overwrite old
{