Reply-To: From: "Arthur" To: "DJGPP Mailing List" 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 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Importance: Normal In-Reply-To: <35C14346.6A03@icrdl.net> Precedence: bulk > 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