This is the mail archive of the libc-alpha@sourceware.org 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]

Faster PPC rounding checks in libm?


I'm looking at trying to recover a bit of performance from the transcendental
functions within libm. The mffs/mtfs instructions used to check the rounding
mode create a substantial bottleneck (see PowerISA 2.07B 4.6.10). From what
I can tell, most of these functions just need to ensure they are computed in
round to nearest.

One thought is to compute known values to infer whether the core is already
in round to even. Though, it has the drawback of always raising the inexact
exception. So, such a check is not an acceptable replacement for all uses.

How objectionable is it to add a rounding check which is allowed to raise
inexact for math functions which the inexact behavior is unspecified?


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