1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-11-26 08:49:37 +00:00

Adds a possible const.

This commit is contained in:
Thomas Harte 2020-01-19 21:40:30 -05:00
parent da3ee381f4
commit b0f7b762af

View File

@ -52,7 +52,7 @@ template <typename IntType = uint64_t, IntType polynomial = LSFRPolynomial<IntTy
determining the bit that was just shifted out.
*/
IntType next() {
auto result = value_ & 1;
const auto result = value_ & 1;
value_ = (value_ >> 1) ^ (result * polynomial);
return result;
}