Make casting styles consistent

Make casting styles consistent with the rest of the code.

closes https://github.com/official-stockfish/Stockfish/pull/4793

No functional change
This commit is contained in:
cj5716
2023-09-19 18:06:12 +08:00
committed by Joost VandeVondele
parent 952740b36c
commit fce4cc1829
11 changed files with 56 additions and 56 deletions

View File

@@ -310,7 +310,7 @@ namespace Stockfish::Eval::NNUE::Layers {
vec_t sum0 = vec_setzero();
const auto row0 = reinterpret_cast<const vec_t*>(&weights[0]);
for (int j = 0; j < (int)NumChunks; ++j)
for (int j = 0; j < int(NumChunks); ++j)
{
const vec_t in = inputVector[j];
vec_add_dpbusd_32(sum0, in, row0[j]);

View File

@@ -102,7 +102,7 @@ namespace Stockfish::Eval::NNUE::Layers {
for (IndexType j = 0; j < InputsPerChunk; ++j)
{
const vec_t inputChunk = inputVector[i * InputsPerChunk + j];
nnz |= (unsigned)vec_nnz(inputChunk) << (j * InputSimdWidth);
nnz |= unsigned(vec_nnz(inputChunk)) << (j * InputSimdWidth);
}
for (IndexType j = 0; j < OutputsPerChunk; ++j)
{