From owner-cvs-src@FreeBSD.ORG Mon Nov 28 06:15:11 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 9E7DD16A41F; Mon, 28 Nov 2005 06:15:11 +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 F238443D5C; Mon, 28 Nov 2005 06:15:10 +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 jAS6FA9i052830; Mon, 28 Nov 2005 06:15:10 GMT (envelope-from bde@repoman.freebsd.org) Received: (from bde@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id jAS6FACG052829; Mon, 28 Nov 2005 06:15:10 GMT (envelope-from bde) Message-Id: <200511280615.jAS6FACG052829@repoman.freebsd.org> From: Bruce Evans Date: Mon, 28 Nov 2005 06:15:10 +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 s_cosf.c s_sinf.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, 28 Nov 2005 06:15:11 -0000 bde 2005-11-28 06:15:10 UTC FreeBSD src repository Modified files: lib/msun/src s_cosf.c s_sinf.c Log: Exploit skew-symmetry to avoid an operation: -sin(x-A) = sin(A-x). This gives a tiny but hopefully always free optimization in the 2 quadrants to which it applies. On Athlons, it reduces maximum latency by 4 cycles in these quadrants but has usually has a smaller effect on total time (typically ~2 cycles (~5%), but sometimes 8 cycles when the compiler generates poor code). Revision Changes Path 1.14 +2 -2 src/lib/msun/src/s_cosf.c 1.14 +2 -2 src/lib/msun/src/s_sinf.c