mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-26 20:16:14 +08:00
Small formatting improvements
Changes some C style casts to C++ style, and fixes some incorrect comments and variable names. closes #4845 No functional change
This commit is contained in:
committed by
Joost VandeVondele
parent
49ece9f791
commit
d6a5c2b085
@@ -93,7 +93,7 @@ class SqrClippedReLU {
|
||||
output[i] = static_cast<OutputType>(
|
||||
// Really should be /127 but we need to make it fast so we right shift
|
||||
// by an extra 7 bits instead. Needs to be accounted for in the trainer.
|
||||
std::min(127ll, ((long long) input[i] * input[i]) >> (2 * WeightScaleBits + 7)));
|
||||
std::min(127ll, ((long long) (input[i]) * input[i]) >> (2 * WeightScaleBits + 7)));
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user