From owner-cvs-src@FreeBSD.ORG Tue Jun 1 12:28:39 2004 Return-Path: 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 4479516A4CE; Tue, 1 Jun 2004 12:28:39 -0700 (PDT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3FC7D43D46; Tue, 1 Jun 2004 12:28:39 -0700 (PDT) (envelope-from bde@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.11/8.12.11) with ESMTP id i51JSdQh070539; Tue, 1 Jun 2004 12:28:39 -0700 (PDT) (envelope-from bde@repoman.freebsd.org) Received: (from bde@localhost) by repoman.freebsd.org (8.12.11/8.12.11/Submit) id i51JSdOw070538; Tue, 1 Jun 2004 12:28:39 -0700 (PDT) (envelope-from bde) Message-Id: <200406011928.i51JSdOw070538@repoman.freebsd.org> From: Bruce Evans Date: Tue, 1 Jun 2004 12:28:39 -0700 (PDT) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/lib/msun/src e_pow.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 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: Tue, 01 Jun 2004 19:28:39 -0000 bde 2004/06/01 12:28:38 PDT FreeBSD src repository Modified files: lib/msun/src e_pow.c Log: Fixed the sign of the result in some overflow and underflow cases (ones where the exponent is an odd integer and the base is negative). Obtained from: fdlibm-5.3 Sun finally released a new version of fdlibm just a coupe of weeks ago. It only fixes 3 bugs (this one, another one in pow() that we already have (rev.1.9), and one in tan(). I've learned too much about powf() lately, so this fix was easy to merge. The patch is not verbatim, because our base version has many differences for portability and I didn't like global renaming of an unrelated variable to keep it separate from the sign variable. This patch uses a new variable named sn for the sign. Revision Changes Path 1.10 +18 -17 src/lib/msun/src/e_pow.c