This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] use hw instructions for ieee754_sqrt on s390.





Ulrich Drepper <drepper@redhat.com> wrote on 18/06/2004 01:49:44 AM:

> 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; }

Yes that is even faster ;-) But serious the hw instruction should
be exact to the last bit. The math test run fine. I have to ask
some hardware guys to make really sure about it though.
After I checked I'll post a new patch with the inline implementation.

blue skies,
   Martin

Linux/390 Design & Development, IBM Deutschland Entwicklung GmbH
Schönaicherstr. 220, D-71032 Böblingen, Telefon: 49 - (0)7031 - 16-2247
E-Mail: schwidefsky@de.ibm.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]