Re: Divide by zero works on ia64!!!

From: Gerald Pfeifer <gp_at_suse.de>
Date: 2005-05-10 07:54:28
On Mon, 9 May 2005, Khalid Aziz wrote:
>> Nothing.  Divide by zero is undefined.
> So, is the inconsistency between x86 and ia64 okay?

Why not?  Even an application as simple as the following will give a 
different output on x86 and ia64:

  #include <iostream>
  #include <climits>

  using namespace std;

  int main() {
    cout << "sizeof long = " << sizeof(long) << endl
         << "CHAR_MAX = " << CHAR_MAX << endl;
  }

And when you run this on ppc64, the output will not match either one
of the above, and on s390 it's different again, yet products like SLES 
support all three (and further) architectures with a common codebase.

Gerald
-
To unsubscribe from this list: send the line "unsubscribe linux-ia64" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Received on Mon May 9 17:56:48 2005

This archive was generated by hypermail 2.1.8 : 2005-08-02 09:20:38 EST