Subject: Re: Status of math_emulate
To: None <port-i386@netbsd.org>
From: Pierre Dubuc <pldubuc@yahoo.ca>
List: port-i386
Date: 02/26/2007 07:42:22
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Replying to message <20070226072728.GD448@arwen.poofy.goof.com>

> Date: Sun, 25 Feb 2007 23:27:28 -0800
> From: Aaron J. Grier <agrier@poofygoof.com>
> To: port-i386@netbsd.org
> Newsgroups: gmane.os.netbsd.ports.i386
> Subject: Re: Status of math_emulate
> 
> On Sat, Feb 24, 2007 at 07:17:17PM -0500, Pierre Dubuc wrote:
>> I see some old posts on the lists about the math_emulate option. Some
>> posts suggest that at one point, the emulation was somehow incomplete.
>
> kernel FPU emulation is incomplete, and doesn't do fsqrt.  it wouldn't
> be a big deal if gcc wasn't generating fsqrt, but somehow the default
> no-fancy-math flag got lost somewhere in the shuffle from egcs to gcc3.
>
> I think you could work around it by adding "-mno-fancy-math-387" to
> CFLAGS/COPTS (I always forget which) and rebuilding the world, to avoid
> generating any sqrt calls, or maybe even "-msoft-float" to avoid
> generating floating point at all.
>
> http://www.netbsd.org/cgi-bin/query-pr-single.pl?number=6986
>
> apparently appending to an existing PR doesn't re-open it.  this is the
> same issue.
>
>

Could another option be to actually implement fsqrt in math_emulate? I'm 
not asking that someone else do it, and I'd be happy to patch the source 
myself, unless I'm told that it wouldn't do any good.

- -- 
Pierre Dubuc
pldubuc@yahoo.ca
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (NetBSD)

iEYEARECAAYFAkXi1bgACgkQaMA1iJ2qYmL1BwCfSosk2suIDRz8+jey5Un2DG3C
CwEAn0+MaB5SvGk75rWSw/vVEux3bNRO
=1pFX
-----END PGP SIGNATURE-----