Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Brad Lucier <lucier@math.purdue.edu>
To: axp-list@redhat.com
Subject: Re: long->double->long goes negative
Date: Fri, 29 Sep 2000 11:36:26 -0500 (EST)	[thread overview]
Message-ID: <200009291636.LAA20719@polya.math.purdue.edu> (raw)

> so u expect +int -> +float -> -int  to be an A-OK situation. Gee what other
> positive float numbers would u expect to give u negative results.
> 
> it should be either a 0, or a long.MAX value.  going neg ( or long.MIN ) is
> not reasonable or rational
> /gat
> 
> In my opinion, the results would be ok if it was converted to an unsigned
> long. Then the high order bit would not be representative of a sign bit.

Let me make a suggestion: when you post to this list, say what bothers
you explicitly.  Here, you don't seem to like how the Alpha kernel
implements behavior that is undefined according to the C standard; if
you had said this up front, then I wouldn't have replied, because there
is nothing sensible that I could have added.

Brad




             reply	other threads:[~2000-09-29 16:36 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-09-29 16:36 Brad Lucier [this message]
  -- strict thread matches above, loose matches on Subject: below --
2000-09-29 11:58 long->double->long goes negative Rick Gorton
2000-09-29 14:43 ` Uncle George
2000-09-29  7:49 Phil Carmody
2000-09-29  0:44 Uncle George
2000-09-29  4:09 ` Brad Lucier
2000-09-29  9:41   ` Uncle George
2000-09-29  9:56     ` Dr. David Gilbert
2000-09-29 10:57       ` Uncle George
2000-09-29 11:55         ` Dr. David Gilbert
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox