Mail Archives: djgpp/1998/07/31/10:04:37
Reply-To: | <arfa AT clara DOT net>
|
From: | "Arthur" <arfa AT clara DOT net>
|
To: | "DJGPP Mailing List" <djgpp AT delorie DOT com>
|
Subject: | RE: 80x87 detection in DJGPP programs
|
Date: | Fri, 31 Jul 1998 15:04:33 +0100
|
Message-ID: | <000101bdbc8c$24bdbe20$674e08c3@arthur>
|
MIME-Version: | 1.0
|
Importance: | Normal
|
In-Reply-To: | <35C14346.6A03@icrdl.net>
|
> Hi Im making a 3d engine and i needed a sqrt routine.
> The DJGPP library sqrt() is fast when the machine have
> a coprocessor, but the emulation is terribly slow. Since
> i works with fixed point i wrote an integer sqrt routine,
> which is faster. On the other hand, it is slower than a 80x87.
>
> So my question is: how can I detect a 80x87 in a DJGPP program?
You could use Allegro - it has a global variable which is set to TRUE if you have a
FPU.
James Arthur
jaa AT arfa DOT clara DOT net
ICQ#15054819
- Raw text -