Subject: Re: how to use math function in kernel.
To: Zongsheng Zhang <zhang@ist.osaka-u.ac.jp>
From: Bill Studenmund <wrstuden@netbsd.org>
List: tech-kern
Date: 09/30/2004 18:01:35
--VV4b6MQE+OnNyhkM
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Fri, Oct 01, 2004 at 09:55:05AM +0900, Zongsheng Zhang wrote:
> Hello,
>=20
> I want to change source code of kerenl, and I wish to use some math
> functions, for example logarithm. However, there is already another
> function called "log" in kernel source. Is there anyone know how to do?

Note: you aren't able to use floating point (FP) in the kernel. The kernel=
=20
doesn't preserve FP state; FP is the domain of usercode. So if you=20
actually used FP, you'd mess up whatever a userland app had last left in=20
the FP registers.

Take care,

Bill

--VV4b6MQE+OnNyhkM
Content-Type: application/pgp-signature
Content-Disposition: inline

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

iD8DBQFBXKxvWz+3JHUci9cRAk5IAJ9k5gxgkubPDL0Fanc/4+QZW8EtKACfbNLv
LCqb2aWuk8ZY/a3+OfDJADM=
=leoA
-----END PGP SIGNATURE-----

--VV4b6MQE+OnNyhkM--