caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: "Scott J," <jscott@planetinternet.be>
To: "Xavier Leroy" <xavier.leroy@inria.fr>
Cc: <caml-list@inria.fr>
Subject: Re: [Caml-list] Runtime overflow and what to do
Date: Fri, 11 Oct 2002 00:17:15 +0200	[thread overview]
Message-ID: <021501c270aa$ca400660$0100a8c0@janxp> (raw)
In-Reply-To: <20021010205716.A8990@pauillac.inria.fr>

[-- Attachment #1: Type: text/plain, Size: 1051 bytes --]

Hi,

So it is not easy, perhaps even impossible if the processor doesn't set a
flag .

e.g. fact n begins first with a lis of negative numbers (after overflow)
then comes again a list with positive numbers and then it remains = 0

Scott
  ----- Original Message -----
  From: Xavier Leroy
  To: Sven LUTHER
  Cc: Luc Maranget ; Scott J, ; caml-list@inria.fr
  Sent: Thursday, October 10, 2002 8:57 PM
  Subject: Re: [Caml-list] Runtime overflow and what to do


  > 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

[-- Attachment #2: Type: text/html, Size: 2583 bytes --]

  reply	other threads:[~2002-10-10 22:17 UTC|newest]

Thread overview: 38+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-10-10 15:01 Scott J,
2002-10-10 15:07 ` Maxence Guesdon
2002-10-10 15:11 ` Maxence Guesdon
2002-10-10 15:21 ` Luc Maranget
2002-10-10 18:13   ` Sven LUTHER
2002-10-10 18:57     ` Xavier Leroy
2002-10-10 22:17       ` Scott J, [this message]
2002-10-11  8:00         ` Sven LUTHER
2002-10-11 10:16         ` Alessandro Baretta
2002-10-12 16:13           ` John Carr
2002-10-12 16:58             ` Sven LUTHER
2002-10-12 17:12               ` John Prevost
2002-10-13  9:31               ` Xavier Leroy
2002-10-13  9:52                 ` Sven LUTHER
2002-10-13  9:57                   ` Xavier Leroy
2002-10-13 10:15                     ` Sven LUTHER
2002-10-13 13:25                   ` John Carr
2002-10-13  9:28             ` Xavier Leroy
2002-10-14  0:56               ` Chris Hecker
2002-10-14  9:46                 ` Jacques Garrigue
2002-10-14 11:02                   ` Scott J,
2002-10-14 14:05                   ` Tim Freeman
2002-10-14 15:32                     ` Stefano Zacchiroli
2002-10-14 16:12                       ` Alain Frisch
2002-10-14 16:49                   ` [Caml-list] new ocaml switches (was Re: Runtime overflow and what to do) Chris Hecker
2002-10-13  9:25         ` [Caml-list] Runtime overflow and what to do Xavier Leroy
2002-10-13 10:04           ` Daniel de Rauglaudre
2002-10-13 10:29             ` Pierre Weis
2002-10-13 10:47               ` Daniel de Rauglaudre
2002-10-13 12:38                 ` Pierre Weis
2002-10-13 16:14               ` Xavier Leroy
2002-10-13 17:06                 ` Michel Quercia
2002-10-15 19:15                 ` Pierre Weis
2002-10-15 19:25                   ` Xavier Leroy
2002-10-16  8:24                     ` Pierre Weis
2002-10-13 10:19           ` Pierre Weis
2002-10-11  8:02       ` Sven LUTHER
2002-10-11  6:42 ` Florian Hars

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='021501c270aa$ca400660$0100a8c0@janxp' \
    --to=jscott@planetinternet.be \
    --cc=caml-list@inria.fr \
    --cc=xavier.leroy@inria.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).