ruby-changes:49357
From: nobu <ko1@a...>
Date: Mon, 25 Dec 2017 21:32:17 +0900 (JST)
Subject: [ruby-changes:49357] nobu:r61472 (trunk): hash.c: use uint128_t
nobu 2017-12-25 21:32:10 +0900 (Mon, 25 Dec 2017) New Revision: 61472 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=61472 Log: hash.c: use uint128_t * hash.c (mult_and_mix): use uint128_t instead of __uint128_t. [ruby-core:84438] [Bug #14231] From: Nobuyoshi Nakada <nobu@r...> Modified files: trunk/hash.c Index: hash.c =================================================================== --- hash.c (revision 61471) +++ hash.c (revision 61472) @@ -231,7 +231,7 @@ static inline uint64_t https://github.com/ruby/ruby/blob/trunk/hash.c#L231 mult_and_mix(uint64_t m1, uint64_t m2) { #if defined HAVE_UINT128_T - __uint128_t r = (__uint128_t) m1 * (__uint128_t) m2; + uint128_t r = (uint128_t) m1 * (uint128_t) m2; return (uint64_t) (r >> 64) ^ (uint64_t) r; #else uint64_t hm1 = m1 >> 32, hm2 = m2 >> 32; -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/