Article View: comp.std.c
Article #3648Re: short division question? ( short ) 0x8000 / ( short ) 0xFFFF = ?
From: Paul Eggert
Date: Fri, 04 Aug 1995 11:22
Date: Fri, 04 Aug 1995 11:22
12 lines
1068 bytes
1068 bytes
msb@sq.sq.com (Mark Brader) writes: >There is a little bit of looseness in the standard in that it doesn't >say that the implementation-defined conversions must always yield the same >result for the same value. As far as I know, this has not been the subject >of an official ruling, but it seems clear to me that the intent is that it >should -- the consequences otherwise would be ridiculous. But what about the common practice of giving programmers run-time (or compile-time) control over the IEEE floating point rounding mode? Doesn't that cause implementation-defined conversions to yield different results for the same value?
Technical Details
Message-ID:
<3vsvuj$3gv@light.twinsun.com>Path:
arc1-ca.pugleaf.net!in1.uu.net!twinsun!not-for-mailReferences:
<3vqpv8$fo0@louie.udel.edu> <1995Aug3.165450.5750@sq.sq.com>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!in1.uu.net!twinsun!not-for-mail From: eggert@twinsun.com (Paul Eggert) Newsgroups: comp.std.c Subject: Re: short division question? ( short ) 0x8000 / ( short ) 0xFFFF = ? Date: 4 Aug 1995 04:22:59 -0700 Organization: Twin Sun Inc, El Segundo, CA, USA Message-ID: <3vsvuj$3gv@light.twinsun.com> References: <3vqpv8$fo0@louie.udel.edu> <1995Aug3.165450.5750@sq.sq.com> NNTP-Posting-Host: light.twinsun.com