Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion Past overflow discussion
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Nick Keighley  
View profile  
 More options Sep 5 2009, 10:29 am
Newsgroups: comp.lang.c, comp.std.c
From: Nick Keighley <nick_keighley_nos...@hotmail.com>
Date: Sat, 5 Sep 2009 07:29:31 -0700 (PDT)
Local: Sat, Sep 5 2009 10:29 am
Subject: Re: Past overflow discussion
On 5 Sep, 06:00, Frank <merr...@lomas-assault.net> wrote:

> On Sep 4, 2:31 pm, Richard Heathfield <r...@see.sig.invalid> wrote:

<snip>

> > The claim was made that there is no standard way to detect overflow in
> > C. I demonstrated that the claim was false, by showing a way to
> > detect overflow (*before* the event) in standard C. I also pointed
> > out that any implementation is already free to provide an extension
> > by which overflows can be detected in some non-standard way.

> I'm surprised that IEEE stuff doesn't cover this for C.  It does for
> fortran.  I notice in H&S V a single reference to IEEE, on p 135: IEEE
> support in C is optional.

> What does that mean?  

in the 1999 C IEEE support is optional. There are ways for a program
to determine if IEEE is supported on a particular implementation. If
it is then various IEEE thingies are available. I'm not sure if
overflow detection is included. Of course IEEE only applies to
floating
point.

> In fortran, you just build around the IEEE
> modules.  Is there a corresponding set of code for C?

As noted above, C *may*, but doesn't have to, support IEEE.
C allows for other types of floating point presumably old ones
or simple ones of embedded systems.

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.