Subject: Re: Setting FP precision: fpgetprec() and fpsetprec()
To: <>
From: Ignatios Souvatzis <is@netbsd.org>
List: tech-userlevel
Date: 06/24/2003 20:53:56
--1yeeQ81UyVL57Vl7
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Hi,

On Mon, Jun 23, 2003 at 06:58:21PM -0700, Jason Thorpe wrote:

> Some platforms have a way to set the precision of FP operations=20
> (singe-, double-, or extended-precision) in the FP control register=20
> (the x86 and m68k FPUs fall into this category).  However, we have no=20
> ...
> FreeBSD has an fp{get,set}prec() interface to control this on x86, so I=
=20
> borrowed the API and have provided implementations for i386 and m68k. =20

How does this interact (on m68k) with code compiled with -m68040 or -m68060,
which I think uses the explicit-precision-opcodes instead of the 68881 ones?
(Or am I totally confused here?)

I guess the answer is "don't do that if you want precision control"?

Regards
	Ignatios
--=20
seal your e-mail: http://www.gnupg.org/

--1yeeQ81UyVL57Vl7
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (NetBSD)

iD8DBQE++J5DPCRcZ/VMtk4RAlqCAJ4k3C8lFd4qB0S5/5B4sVVLPnYT3gCffnhC
AgEWn9Gpjw6fZtiL06uub1M=
=viKm
-----END PGP SIGNATURE-----

--1yeeQ81UyVL57Vl7--