From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fc89c,7e35f49d4d9340ab X-Google-Attributes: gidfc89c,public X-Google-Thread: 1164f8,7e35f49d4d9340ab X-Google-Attributes: gid1164f8,public X-Google-Thread: 109fba,7e35f49d4d9340ab X-Google-Attributes: gid109fba,public From: lpa@netcom.com (Pierre Asselin) Subject: Re: Division by zero crashes on DEC should be avoidable! Date: 1998/03/06 Message-ID: #1/1 X-Deja-AN: 331546395 Sender: lpa@netcom7.netcom.com References: <34FF7719.41C6@ned.dem.csiro.au> <6dpdce$jsg@gap.cco.caltech.edu> <6dpuqm$2vk@camel21.mindspring.com> Organization: Netcom On-Line Services Newsgroups: comp.sys.dec,comp.lang.c++,comp.unix.programmer "Michael C. Grant" writes: >Folks, it really isn't very difficult to work with division by zero and >infinities in computational code. In fact, it's a very useful idiom, and >that's precisely the reason why the IEEE floating-point standards allow it. I think there's also a technical reason behind it. Something to do with vector processors or long floating-point pipelines, and not stalling them with an exception when an infinity or a NAN would do. -- --Pierre Asselin, Westminster, Colorado lpa@netcom.com pa@verano.sba.ca.us