From owner-cvs-src@FreeBSD.ORG Mon Nov 21 04:57:12 2005 Return-Path: X-Original-To: cvs-src@FreeBSD.org Delivered-To: cvs-src@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 878D516A41F; Mon, 21 Nov 2005 04:57:12 +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 5A39E43D46; Mon, 21 Nov 2005 04:57:12 +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 jAL4vCs1002471; Mon, 21 Nov 2005 04:57:12 GMT (envelope-from bde@repoman.freebsd.org) Received: (from bde@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id jAL4vCCb002470; Mon, 21 Nov 2005 04:57:12 GMT (envelope-from bde) Message-Id: <200511210457.jAL4vCCb002470@repoman.freebsd.org> From: Bruce Evans Date: Mon, 21 Nov 2005 04:57:12 +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_cosf.c k_sinf.c k_tanf.c s_cosf.c s_sinf.c s_tanf.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Nov 2005 04:57:12 -0000 bde 2005-11-21 04:57:12 UTC FreeBSD src repository Modified files: lib/msun/src k_cosf.c k_sinf.c k_tanf.c s_cosf.c s_sinf.c s_tanf.c Log: Mess up the "kernel" float trig function .c files with ifdefs so that they can be #included in other .c files to give inline functions, and use them to inline the functions in most callers (not in e_lgammaf_r.c). __kernel_tanf() is too large and complicated for gcc to inline very well. An athlons, this gives a speed increase under favourable pipeline conditions of about 10% overall (larger for AXP, smaller for A64). E.g., on AXP, sinf() on uniformly distributed args in [-2Pi, 2Pi] now takes 30-56 cycles; it used to take 45-61 cycles; hardware fsin takes 65-129. Revision Changes Path 1.13 +5 -0 src/lib/msun/src/k_cosf.c 1.11 +5 -0 src/lib/msun/src/k_sinf.c 1.15 +5 -0 src/lib/msun/src/k_tanf.c 1.11 +4 -0 src/lib/msun/src/s_cosf.c 1.11 +4 -0 src/lib/msun/src/s_sinf.c 1.12 +2 -0 src/lib/msun/src/s_tanf.c