News for hackers. Stuff that matters.
Re:Improving math performance in glibc by simonbyrne on Saturday January 03, 2015 @06:05AM (#8830486)
The easiest way to make elementary functions faster is to use a different libm: the glibc preoccupation with being correctly rounded (ie accurate to within 0.5 ulps) imposes significant performance penalties. For example the glibc log function, which is often the dominant cost in a lot of sampling algorithms, is about 2.5x slower than a straightforward implementation (ie no fancy SIMD tricks) of Tang's 25 year old table lookup algorithm, which is accurate to 0.57 ulps. Recent OS X libms are faster still, and appear to be accurate to about 0.51 ulps, though unfortunately are closed source.
Re:Improving math performance in glibc by gaius on Saturday January 03, 2015 @06:23AM (#8830509)
Back in the good old days, Motorola provided a drop-in highly optimized replacement maths library for Power Macs http://uk.mathworks.com/matlabcentral/newsreader/view_thread...

I remember being amazed in the final year of college, the PowerMac 7600 I'd spent my student loan on, was running my FORTRAN as quick as the DEC Alphas in the lab.

Re:Improving math performance in glibc by grandinj on Saturday January 03, 2015 @06:42AM (#8830532)
Maybe this is a place where GLIBC could provide additional variants with improved performance and reduced rounding accuracy.