From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:54498) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eBcyr-0001Zy-1b for guix-patches@gnu.org; Mon, 06 Nov 2017 03:42:05 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eBcyo-0007DE-06 for guix-patches@gnu.org; Mon, 06 Nov 2017 03:42:05 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:44271) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eBcyn-0007Ct-Sd for guix-patches@gnu.org; Mon, 06 Nov 2017 03:42:01 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1eBcyn-00040T-Jy for guix-patches@gnu.org; Mon, 06 Nov 2017 03:42:01 -0500 Subject: [bug#29132] [PATCH] system: vm: Use 2^32 - 1 as hash size. Resent-Message-ID: From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) References: <1509713344-16963-1-git-send-email-m.othacehe@gmail.com> <87bmkgo3ij.fsf@gnu.org> <87shdsmolu.fsf@gmail.com> Date: Mon, 06 Nov 2017 09:41:09 +0100 In-Reply-To: <87shdsmolu.fsf@gmail.com> (Mathieu Othacehe's message of "Sun, 05 Nov 2017 21:56:13 +0100") Message-ID: <87r2tber4q.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: Mathieu Othacehe Cc: 29132@debbugs.gnu.org Mathieu Othacehe skribis: > Hey Ludo, > >> So I take it that you always get something in the range 0=E2=80=932=C2= =B3=C2=B2-1, no? > > Well I agree, but looking to hash code, we have : > > #define FUNC_NAME s_scm_hash > { > unsigned long sz =3D scm_to_unsigned_integer (size, 1, ULONG_MAX); Oh, got it. Well, OK for the patch! Thank you, Ludo=E2=80=99.