Date: Wed, 23 Nov 2005 14:27:56 +0000 (UTC) From: Bruce Evans <bde@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/lib/msun/src k_tanf.c math_private.h s_tanf.c Message-ID: <200511231427.jANERupX060862@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
bde 2005-11-23 14:27:56 UTC FreeBSD src repository Modified files: lib/msun/src k_tanf.c math_private.h s_tanf.c Log: Use only double precision for "kernel" tanf (except for returning float). This is a minor interface change. The function is renamed from __kernel_tanf() to __kernel_tandf() so that misues of it will cause link errors and not crashes. This version is a routine translation with no special optimizations for accuracy or efficiency. It gives an unimportant increase in accuracy, from ~0.9 ulps to 0.5285 ulps. Almost all of the error is from the minimax polynomial (~0.03 ulps and the final rounding step (< 0.5 ulps). It gives strange differences in efficiency in the -5 to +10% range, with -O1 fairly consistently becoming faster and -O2 slower on AXP and A64 with gcc-3.3 and gcc-3.4. Revision Changes Path 1.16 +17 -20 src/lib/msun/src/k_tanf.c 1.19 +1 -1 src/lib/msun/src/math_private.h 1.13 +2 -8 src/lib/msun/src/s_tanf.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200511231427.jANERupX060862>