TIP: Click on subject to list as thread! ANSI
echo: nthelp
to: Geo.
from: Tony Ingenoso
date: 2002-11-09 11:45:26
subject: Re: i have guilt

From: "Tony Ingenoso" 

You can't - its entirely under app control and MUST be set on a per thread
basis, and sometimes altered often during the execution of any given
thread.  Every thread in the system will have its own NPX context that must
be saved/restored on context swaps.

The loader could init an app with some chosen setting, but most
apps/threads will do an FINIT instruction then setup the kinds of rounding
and exception masking they intend to use.

The only way (very grusome) to subvert an apps behavior in the OS would be
to init the app with the NPX emulation bit set, then have the OS field an
exception on EVERY numeric opcode encountered, examine that instruction to
see if it altered the NPX control word rounding bits, and ignore it if it
did.  Apps that needed say round up to give correct answers that were
forced into say chop this way would all produce bogus results.  NPX
performance with a scheme like this would be horrendous.


"Geo."  wrote in message
news:3dcd368b$1{at}w3.nls.net...
> Riiiight, and as an end user how does one set this system wide?
>
> Geo.
>
> "Tony Ingenoso"  wrote in message
> news:3dcc8297{at}w3.nls.net...
> > There's four available founding modes in 754 standard.  up, down, nearest,
> and chop to zero.
> >
> > Its entirely up to the applications to set the most appropriate rounding
> mode for the task at hand.  In extreme cases, you may be
> > changing it constantly between NPX calc operations.  If you don't
> explicitly set this to what you want, you may get answers other
> > than what you want ;->

--- BBBS/NT v4.01 Flag-4
* Origin: Barktopia BBS Site http://HarborWebs.com:8081 (1:379/1.45)
SEEN-BY: 3/2 10 106/1 120/544 123/500 379/1 633/260 267 270 285 774/0 605
SEEN-BY: 2432/200
@PATH: 379/1 106/1 123/500 774/605 633/260 285

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