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.


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 â


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