diff options
author | tron <tron@openttd.org> | 2005-07-20 15:29:28 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2005-07-20 15:29:28 +0000 |
commit | f09638ad3d3eaf3574086e351a56bf5c14159894 (patch) | |
tree | a82679a91beaee405777f0f3c5e3c45814f1ea5d /win32.c | |
parent | f3645d73073e262d9dba2f4d69a9848be435b7df (diff) | |
download | openttd-f09638ad3d3eaf3574086e351a56bf5c14159894.tar.xz |
(svn r2650) Convert many explicit shifts+ands to extract bits to invocations of GB - should be a bit nicer to read
Diffstat (limited to 'win32.c')
-rw-r--r-- | win32.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -2142,8 +2142,8 @@ int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, #if defined(_MSC_VER) { uint64 seed = rdtsc(); - _random_seeds[0][0] = seed & 0xffffffff; - _random_seeds[0][1] = seed >> 32; + _random_seeds[0][0] = GB(seed, 0, 32); + _random_seeds[0][1] = GB(seed, 32, 32); } #else _random_seeds[0][0] = GetTickCount(); |