TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: All
from: Thomas Seeling
date: 1997-01-19 12:46:26
subject: Re: Floating point feature with optimization

* Crossposted in OS2PROG
* Crossposted in OS2.PROG.GER
* Crossposted in OS2NET.PROGRAMMIERUNG.GER

======================================================================
* Forwarded von Thomas Seeling (2:244/1130.42)
* Area : emx
======================================================================
From: Ron Van Iwaarden 


On Fri, 17 Jan 1997, Allen H. Cogbill wrote:

> On Fri, 17 Jan 1997 11:19:25 -0500, chrisg{at}lplizard.com wrote:
>
> >You can overcome this particular problem (if it's really a
> >problem for you - It was for us) by setting the FPU to only operate in
> >double (or single) precision. This will prevent the extra precision in
> >the 80-bit FPU registers from being used.
>
> How does one accomplish this?

Try adding the lines:

#include  /* whereever you have main() */
_control87 (PC_53, MCW_PC); /*as the first executed line of main() */

This should force the FPU into IEEE mode which causes 64 bits to be
used (the standard external representation) both internally to the FPU
and externally.  You can get more info on _control87 in
/emx/doc/emxlib.doc.

--Ron
      o           Ronald Van Iwaarden   | Work to live;
     /\           Hope College          | Live to bike;
   _`\ `_<===     Holland MI 49423      | Bike to work!
__(_)/_(_)___.-._ voice : (616)395-7523 | http://www.cs.hope.edu/~rvaniwaa/
-------------
To unsubscribe send a message to majordomo{at}IAEhv.nl with in the body:
unsubscribe emx 
Report serious problems at: emx-owner{at}.IAEhv.nl.
======================================================================

--- E3-32/1.11-32/2.51+
* Origin: Die TeX-Box +49-6034-930021 V.34 -930022 ISDN 24h (2:244/1130.42)
SEEN-BY: 50/99 54/99 270/101 620/243 625/110 160 711/401 430 808 934 712/311
SEEN-BY: 712/407 505 506 517 623 624 704 713/317 800/1
@PATH: 244/1130 1634 24/888 396/1 270/101 712/624 711/934

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.