ruby-changes:45101
From: nobu <ko1@a...>
Date: Sat, 24 Dec 2016 22:21:33 +0900 (JST)
Subject: [ruby-changes:45101] nobu:r57174 (trunk): hash.c: split long long literals
nobu 2016-12-24 22:21:30 +0900 (Sat, 24 Dec 2016) New Revision: 57174 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=57174 Log: hash.c: split long long literals * hash.c (prime1, prime2): split long long literals for platforms where LL suffix is not supported, e.g., VC6. Modified files: trunk/hash.c Index: hash.c =================================================================== --- hash.c (revision 57173) +++ hash.c (revision 57174) @@ -220,8 +220,8 @@ rb_any_hash(VALUE a) https://github.com/ruby/ruby/blob/trunk/hash.c#L220 tailored Spooky or City hash function can be. */ /* Here we two primes with random bit generation. */ -static const uint64_t prime1 = 0x2e0bb864e9ea7df5ULL; -static const uint64_t prime2 = 0xcdb32970830fcaa1ULL; +static const uint64_t prime1 = ((uint64_t)0x2e0bb864 << 32) | 0xe9ea7df5; +static const uint64_t prime2 = ((uint64_t)0xcdb32970 << 32) | 0x830fcaa1; static inline uint64_t -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/