Clang: undeclared identifier __UINT64_C

Issue #3564
This commit is contained in:
Ehmry - 2019-11-28 14:16:48 +01:00 committed by Christian Helmuth
parent 6b6915e304
commit a3e43aca87
1 changed files with 3 additions and 3 deletions

View File

@ -34,9 +34,9 @@ namespace Util {
uint64_t splitmix64()
{
uint64_t z = (seed += __UINT64_C(0x9E3779B97F4A7C15));
z = (z ^ (z >> 30)) * __UINT64_C(0xBF58476D1CE4E5B9);
z = (z ^ (z >> 27)) * __UINT64_C(0x94D049BB133111EB);
uint64_t z = (seed += 0x9E3779B97F4A7C15ULL);
z = (z ^ (z >> 30)) * 0xBF58476D1CE4E5B9ULL;
z = (z ^ (z >> 27)) * 0x94D049BB133111EBULL;
return z ^ (z >> 31);
}