This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: [PATCH] 32-bit ppc rounding functions (v2) (again)
- From: Steve Munroe <sjmunroe at us dot ibm dot com>
- To: Geoffrey Keating <geoffk at geoffk dot org>
- Cc: dgm69 at us dot ibm dot com, libc-alpha at sources dot redhat dot com
- Date: Tue, 29 Jun 2004 22:22:51 -0500
- Subject: Re: [PATCH] 32-bit ppc rounding functions (v2) (again)
- Reply-to:
- Sensitivity:
libc-alpha-owner@sources.redhat.com wrote on 06/29/2004 05:29:20 PM:
> Dwayne Grant McConnell <dgm69@us.ibm.com> writes:
>
> > On Fri, 11 Jun 2004, Dwayne Grant McConnell wrote:
> >
> > > The attached patch implements ceil, floor, rint, round, trunc
> for double and
> > > floot in ppc assembly.
> > >
> > > Resent with ChangeLog this time.
> > >
> > > Resent (again) with patch this time.
> >
> > Is there anything else I need to do regarding this patch?
>
> Well, I'm no Uli, but as a starting point I would suggest implementing
> these in C using the fesetround() macro.
The fesetround() is expensive by comparison to this implementation. This
code represents the minimal use of the expensive mffs/mtfsf instructions.
Steven J. Munroe
Linux on Power Toolchain Architect
IBM Corporation, Linux Technology Center