From owner-cvs-all@FreeBSD.ORG Wed Nov 23 14:27:57 2005 Return-Path: X-Original-To: cvs-all@FreeBSD.org Delivered-To: cvs-all@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2D2BF16A41F; Wed, 23 Nov 2005 14:27:57 +0000 (GMT) (envelope-from bde@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id EE2F543D53; Wed, 23 Nov 2005 14:27:56 +0000 (GMT) (envelope-from bde@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id jANERud9060863; Wed, 23 Nov 2005 14:27:56 GMT (envelope-from bde@repoman.freebsd.org) Received: (from bde@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id jANERupX060862; Wed, 23 Nov 2005 14:27:56 GMT (envelope-from bde) Message-Id: <200511231427.jANERupX060862@repoman.freebsd.org> From: Bruce Evans Date: Wed, 23 Nov 2005 14:27:56 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/lib/msun/src k_tanf.c math_private.h s_tanf.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 Nov 2005 14:27:57 -0000 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