www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1995/08/29/22:25:30

Date: Tue, 29 Aug 1995 21:23:55 -0400
From: dj (DJ Delorie)
To: stwand07 AT uctvms DOT uct DOT ac DOT za
Cc: djgpp AT sun DOT soe DOT clarkson DOT edu
Subject: Re: Q: Detecting presence of maths copro.

> 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.

The Intel manual has code for doing this.  Examples of these
techniques can be found in the sources for go32 and V2's libc, since
they need to do this detection also.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019