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 VAA10421; Thu, 10 Oct 2002 21:01:18 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id VAA10347 for ; Thu, 10 Oct 2002 21:01:18 +0200 (MET DST) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id g9AIvH504010; Thu, 10 Oct 2002 20:57:17 +0200 (MET DST) Received: (from xleroy@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id UAA10527; Thu, 10 Oct 2002 20:57:16 +0200 (MET DST) Date: Thu, 10 Oct 2002 20:57:16 +0200 From: Xavier Leroy To: Sven LUTHER Cc: Luc Maranget , "Scott J, " , caml-list@inria.fr Subject: Re: [Caml-list] Runtime overflow and what to do Message-ID: <20021010205716.A8990@pauillac.inria.fr> References: <00bd01c2706d$e7cd68e0$0100a8c0@janxp> <200210101521.RAA0000032708@beaune.inria.fr> <20021010181323.GA1922@iliana> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: <20021010181323.GA1922@iliana>; from luther@dpt-info.u-strasbg.fr on Thu, Oct 10, 2002 at 08:13:23PM +0200 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk > But it is the lower bit that is ignored, no, si i guess incrementing an > ocaml integer by 1, correspond to incrementing the machine integer by > two, and would set the overflow flag in the processor status register > all the same, would it not ? Yes, except that not all processors have overflow flags. The Alpha and the MIPS don't, for instance. Integer arithmetic modulo a power of 2 is unpleasant for certain applications (and very useful for others, e.g. hash functions and cryptography), but this is really all what today's processors offer. - Xavier Leroy ------------------- 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