Subject: Re: Call for assistance: porters wanted for nathanw_sa support
To: Nathan J. Williams <nathanw@wasabisystems.com>
From: Jason R Thorpe <thorpej@wasabisystems.com>
List: tech-kern
Date: 11/20/2001 11:22:43
On Sun, Nov 18, 2001 at 04:41:11PM -0800, Jason R Thorpe wrote:

 > (This gets even trickier for systems w/ soft FP in libc... guess in
 > that case, you just need to save the rounding modes, etc...)

Okay...

So, I'm looking at libc/softfloat... we could eliminate the need to
save/restore softfloat FP state by using thread-specific variables,
like we do for errno.

At first glance, it looks like:

	float_rounding_mode (fpgetround()/fpsetround())
	float_exception_flags (fpgetsticky()/fpsetsticky())
...and possibly:
	floatx80_rounding_precision (internal to softfloat.c)

...would fall into this category.  I don't see any other global state
within libc/softfloat.

Note, this would only apply to
libpthread .. the libc getcontext()/setcontext() would still need
to do something about this.

-- 
        -- Jason R. Thorpe <thorpej@wasabisystems.com>