www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/09/11/01:27:12

Date: Wed, 11 Sep 1996 08:19:28 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Brennan The Reverend Bas Underwood <brennan AT mack DOT rt66 DOT com>
Cc: djgpp AT delorie DOT com
Subject: Re: coprocessor
In-Reply-To: <511put$ne@mack.rt66.com>
Message-Id: <Pine.SUN.3.91.960911081336.12610E-100000@is>
Mime-Version: 1.0

On 9 Sep 1996, Brennan The Reverend Bas Underwood wrote:

> I'm not the original poster, but I'd like to be able to issue a warning
> when I detect "coprocessor not present" for my current project. It'll
> still work w/emulation, just much slower. I noticed Quake will flat
> out refuse to run with 387=N set.

There is a function called `_detect_80387' (I think it's public, but if 
not, you can find its source in the library sources) that the DJGPP 
startup code calls to find out if there is an FPU.  I guess you can just 
call it (it returns zero if there is no FPU, non-zero otherwise).

- Raw text -


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