Oops, is it March 15, already ??? Robert Harley wrote: > > Joachim quoted: > >> Now, this CPML will enable customers to significantly increase the > >> precision and speed of mathematical calculations by more than 10 times > >> compared to other mathematical libraries currently available on Linux. > > and wrote: > > >I'd say, don't expect that much. And precision, AFAIK, is actually > >comparable or worse than current libs > > The file http://www.unix.digital.com/linux/cpml.0.1.tar.gz > contains a README that gives the following numbers: Snip on many numbers   > > Those suggest that the precision really is good and, compared to libm > at least, there are several functions for which there is a 10x speed-up. I see, this really is VERY good, I like it. But, where is the factor of 10 compared to any other lib currently available ? That's what O could not believe ? > > >(I played around with some DU binary, sqrt is NOT correctly rounded). > > That happens is you use the "-fast" flag which is documented as: > > ============================================================================== > -fast > Provides a single method for turning on a collection of optimizations > for increased performance. > > Note that the -fast flag can produce different results for floating- > point arithmetic and math functions, although most programs are not > sensitive to these differences. [...] > ============================================================================== > > I doubt very much if the non "-fast" sqrt() has any last bit errors... Yes, you must be right !!   > >AND, regarding the latest discussion here, it's HEAVILY table driven ! > > Doh! Is there any consensus on what size of tables are accpetable for > a library? For a specific app, it would be "as big as necessary to go > as fast as possible" but for a library routine I try to stick to <= > 256 bytes. > Yes, I agree, I'm actually *IN* the "why not do it table driven" fraction !! I already had started to work on a table driven version of libffm, but could not (yet) go on. No further need to continue, I guess. Thanx, Compaq !! Joachim (Robert, sorry for the 2nd mail, wrong reply address !)