| www.delorie.com/archives/browse.cgi | search |
| Xref: | news-dnh.mv.net comp.os.msdos.djgpp:1821 |
| Newsgroups: | comp.os.msdos.djgpp |
| Path: | news-dnh.mv.net!mv!news.NH.Destek.Net!news2.net99.net!news.cais.net!ringer.cs.utsa.edu!swrinde!howland.reston.ans.net!spool.mu.edu!torn!nott!cunews!freenet.carleton.ca!FreeNet.Carleton.CA!ao950 |
| From: | ao950 AT FreeNet DOT Carleton DOT CA (Paul Derbyshire) |
| Subject: | Q: Detecting presence of maths copro. |
| Sender: | ao950 AT freenet2 DOT carleton DOT ca (Paul Derbyshire) |
| Reply-To: | ao950 AT FreeNet DOT Carleton DOT CA (Paul Derbyshire) |
| Organization: | The National Capital FreeNet |
| References: | <1995Aug29 DOT 114346 AT uctvms DOT uct DOT ac DOT za> |
| Date: | Wed, 30 Aug 1995 03:18:37 GMT |
| Lines: | 20 |
| To: | djgpp AT sun DOT soe DOT clarkson DOT edu |
| Dj-Gateway: | from newsgroup comp.os.msdos.djgpp |
(stwand07 AT uctvms DOT uct DOT ac DOT za) writes:
> Hi all
>
> Is there some way to gracefully detect the presence of a maths co-pro, or
> emulator without generating an exception if one isn't available. I'd like
> to have a pre-check in my program so that if there is no maths support a
> "friendly" message pops up instead of the program hanging.
Also, what about detecting a coprocessor so that your code can choose
between an emulator and a real copro? That way floating point math'll work
on any machine, but the speed advantage will be there if it runs on a
system with a real coprocessor. Or is that done automatically by go32 or
whatever if you include an emulator?
--
.*. "Clouds are not spheres, mountains are not cones, coastlines are not
-() < circles, and bark is not smooth, nor does lightning travel in a
`*' straight line." ,------------------------------------------------
-- B. Mandelbrot | Paul Derbyshire (PGD) ao950 AT freenet DOT carleton DOT ca
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |