From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id UAA22178; Mon, 20 Jan 2003 20:06:30 +0100 (MET) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id UAA21879 for ; Mon, 20 Jan 2003 20:06:28 +0100 (MET) Received: from mx01.nexgo.de (mx01.nexgo.de [151.189.8.96]) by nez-perce.inria.fr (8.11.1/8.11.1) with ESMTP id h0KJ6Rv05677 for ; Mon, 20 Jan 2003 20:06:27 +0100 (MET) Received: from diebuntekuh.de (dialin-212-144-185-074.arcor-ip.net [212.144.185.74]) by mx01.nexgo.de (Postfix) with ESMTP id 44E363D494 for ; Mon, 20 Jan 2003 20:06:26 +0100 (CET) Received: by diebuntekuh.de (Postfix, from userid 500) id 42AF63D8AB; Mon, 20 Jan 2003 20:05:38 +0100 (CET) To: caml-list@inria.fr Subject: [Caml-list] Need unsigned int From: Christoph Bauer Date: 20 Jan 2003 20:05:38 +0100 Message-ID: User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Hi, my program need to calculate a hash key of a matrix (with dimension 8 x 8). It is necessary that this calculation is very fast, so my program will update the hash key after every small modification of the matrix. My problem is that the hash key should be an unsigned int or an unsigned long in. My problem occurs here (Mersenne prime number 2^31-1): let big_prim = 2147483647 val big_prim : int = -1 Thanks in advance for your support, Christoph Bauer -- proc self {} {foreach c [split [info body self] ""] d {14 -7 0 0 4 -67 4 73 11 69 24 -83 -15 6 -4 -84 78 20 11 -78 -1 -1 79 19 -8 4} { binary scan $c c c if {[catch {append r [format %c [expr $c+$d]]}]} {return $r};}};puts [self] ------------------- To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ Beginner's list: http://groups.yahoo.com/group/ocaml_beginners