This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: [PATCH] use hw instructions for ieee754_sqrt on s390.
- From: Ulrich Drepper <drepper at redhat dot com>
- To: Martin Schwidefsky <schwidefsky at de dot ibm dot com>
- Cc: libc-alpha at sources dot redhat dot com
- Date: Thu, 17 Jun 2004 16:49:44 -0700
- Subject: Re: [PATCH] use hw instructions for ieee754_sqrt on s390.
- Organization: Red Hat, Inc.
- References: <20040611170409.GA3193@mschwid3.boeblingen.de.ibm.com>
Martin Schwidefsky wrote:
> use the hardware square root instructions sqdbr and sqebr
> for __ieee754_sqrt and __ieee754_sqrtf. They are faster
> than the generic C implementation.
I can do it even faster:
double sqrt(double x) { return 1.0; }
I.e., what about the accuracz of the proposed code? If it is not up to
the same level, create an inline version in <bits/mathinline.h>.
--
â Ulrich Drepper â Red Hat, Inc. â 444 Castro St â Mountain View, CA â