realbasic-nug
[Top] [All Lists]

Re: Division by zero

To: REALbasic NUG <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: Division by zero
From: Mark Nutter <manutter51 at yahoo dot com>
Date: Wed, 30 Mar 2005 18:30:48 -0800 (PST)
Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys
Delivered-to: realbasic-nug at lists dot realsoftware dot com
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; b=c5/E3aZS1GULdC2TnxxUKBNj6lu/OFEnYC+ZXmKzaQCKgkC6pLCuVgr6XXUvtYzfJwzhbJ0xBC1qkVThQrgN4TEG/vuzPxkA6YSFFfGLn4rDEdjqknMR1Sv0P1hf9Gz1sEM4Mg5cqbYOlDXMlzrLL0Rj51PaZPbVZvxfW3qEnX0= ;
--- Jonathan Johnson <jonj at realsoftware dot com> wrote:
> Really? I get 0 with this code on Mac OS X:
> 
> int main(int argc, char *argv[])
> {
>       int i;
>       i = 1;
>       i = i / 0;
>       
>       printf( "%i\n", i );
>       return 0;
> }
> 
> REALbasic simply compiles in a divw instruction on
> PPC for integer 
> division, and the equivalent on x86.

I wonder if that's a RISC (ppc) versus CISC (x86)
thing?  It's nice to know it's Motorola's fault,
anyway ;)

Mark


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

<Prev in Thread] Current Thread [Next in Thread>