test: Fix LFSR period in comments

Verified using a Python implementation.

Co-authored-by: Daira Hopwood <daira@jacaranda.org>
This commit is contained in:
str4d 2020-09-26 00:56:20 +01:00 committed by GitHub
parent b5ddac4b71
commit b2b5cccf39
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -35,7 +35,7 @@ static void LockedPool(benchmark::State& state)
bool lsb = s & 1;
s >>= 1;
if (lsb)
s ^= 0xf00f00f0; // LFSR period 0xf7ffffe0
s ^= 0xf00f00f0; // LFSR period 0xf7ffffe1
}
}
for (void *ptr: addr)

View File

@ -116,7 +116,7 @@ BOOST_AUTO_TEST_CASE(arena_tests)
bool lsb = s & 1;
s >>= 1;
if (lsb)
s ^= 0xf00f00f0; // LFSR period 0xf7ffffe0
s ^= 0xf00f00f0; // LFSR period 0xf7ffffe1
}
for (void *ptr: addr)
b.free(ptr);