From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Roland Orre Newsgroups: gmane.lisp.guile.user Subject: Re: Does anyone have a better scm_string_hash Date: Mon, 17 Nov 2003 14:32:19 +0100 Organization: NeuroLogic Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Message-ID: <1069075939.1645.66.camel@localhost> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1069076394 24588 80.91.224.253 (17 Nov 2003 13:39:54 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 17 Nov 2003 13:39:54 +0000 (UTC) Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Mon Nov 17 14:39:51 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1ALjbb-000798-00 for ; Mon, 17 Nov 2003 14:39:51 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1ALkWr-0008Tq-L9 for guile-user@m.gmane.org; Mon, 17 Nov 2003 09:39:01 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1ALkWL-0008Su-An for guile-user@gnu.org; Mon, 17 Nov 2003 09:38:29 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1ALkVl-0008OK-JX for guile-user@gnu.org; Mon, 17 Nov 2003 09:38:24 -0500 Original-Received: from [217.70.33.37] (helo=lists.levonline.com) by monty-python.gnu.org with esmtp (Exim 4.24) id 1ALkVl-0008Mj-77 for guile-user@gnu.org; Mon, 17 Nov 2003 09:37:53 -0500 Original-Received: from localhost (lists.levonline.com [127.0.0.1]) by lists.levonline.com (Postfix) with ESMTP id 42060D0372; Mon, 17 Nov 2003 14:36:24 +0100 (CET) Original-Received: from lists.levonline.com ([127.0.0.1]) by localhost (lists.levonline.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 20448-05; Mon, 17 Nov 2003 14:36:23 +0100 (CET) Original-Received: from ormen2.basenet.levonline.com (ormen2.levonline.com [217.70.32.118]) by lists.levonline.com (Postfix) with ESMTP id 207F4D01E4; Mon, 17 Nov 2003 14:36:23 +0100 (CET) Original-Received: from bari.bacon.su.se (bari.bacon.su.se [130.237.152.231]) (authenticated bits=0) by ormen2.basenet.levonline.com (8.12.8/8.12.8) with ESMTP id hAHDPPBB013892; Mon, 17 Nov 2003 14:25:25 +0100 Original-To: guile-user@gnu.org X-Mailer: Ximian Evolution 1.4.5 X-Virus-Scanned: By http://levonline.com - free virus scanning for all customers X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Xref: main.gmane.org gmane.lisp.guile.user:2395 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.user:2395 On Mon, 2003-11-17 at 14:01, Ludovic Court=E8s wrote: > I don't think you need to compute a modulo (logical and with HASH_MASK) > of the hash key, because scm_hasher () returns scm_string_hash () % n. No you are right, but it felt better just to avoid numerical overflow, but... I don't remember if that's an issue for integers. Best regards Roland _______________________________________________ Guile-user mailing list Guile-user@gnu.org http://mail.gnu.org/mailman/listinfo/guile-user