Subject: Re: a couple of low level questions
To: None <port-sparc@netbsd.org>
From: John Steele Scott <toojays@toojays.net>
List: port-sparc
Date: 01/06/2003 09:51:40
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Mon, 6 Jan 2003 03:41, der Mouse wrote:
> > The "SPARC Architecture Manual" proposes that code should call the
> > ".udiv" routine (for example) which would then know whether to do the
> > operation in software or hardware.  Does this happen on NetBSD?
> > Whereabouts in the libc source can I see this?
>
> Based on a somewhat out-of-date source tree, see
> usr/src/lib/libc/arch/sparc/gen/divrem.m4.  Other files in that
> directory (mul.S, umul.S) handle multiplication.

What I mean is, where can I see the code which detects whether to use the=
=20
library code (e.g. usr/src/libc/arch/sparc/gen/divrem.m4) or whether do d=
o it=20
in hardware directly (e.g. with a udiv instruction)?

cheers,

John
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)
Comment: Messages with missing or bad signatures may have been forged or =
modified in transit!

iD8DBQE+GL4M0BW7kPcXjRURAnkLAKC/6PXCWm6/MJAebKuWKcLOELFLbgCfQIAd
+OTP39jnTl3oyBlHMCqlEAk=3D
=3DNaDr
-----END PGP SIGNATURE-----