From owner-svn-src-all@FreeBSD.ORG Tue Dec 7 03:29:36 2010 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DD2871065673; Tue, 7 Dec 2010 03:29:36 +0000 (UTC) (envelope-from das@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id CE3EE8FC16; Tue, 7 Dec 2010 03:29:36 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id oB73Ta1t053005; Tue, 7 Dec 2010 03:29:36 GMT (envelope-from das@svn.freebsd.org) Received: (from das@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id oB73Ta6m053003; Tue, 7 Dec 2010 03:29:36 GMT (envelope-from das@svn.freebsd.org) Message-Id: <201012070329.oB73Ta6m053003@svn.freebsd.org> From: David Schultz Date: Tue, 7 Dec 2010 03:29:36 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r216248 - head/lib/msun/src X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 07 Dec 2010 03:29:37 -0000 Author: das Date: Tue Dec 7 03:29:36 2010 New Revision: 216248 URL: http://svn.freebsd.org/changeset/base/216248 Log: Another minor nit: Make sure the constant here is a float so the compiler doesn't promote the entire expression to double. Modified: head/lib/msun/src/e_log2f.c Modified: head/lib/msun/src/e_log2f.c ============================================================================== --- head/lib/msun/src/e_log2f.c Tue Dec 7 02:19:15 2010 (r216247) +++ head/lib/msun/src/e_log2f.c Tue Dec 7 03:29:36 2010 (r216248) @@ -50,7 +50,7 @@ __ieee754_log2f(float x) SET_FLOAT_WORD(x,hx|(i^0x3f800000)); /* normalize x or x/2 */ k += (i>>23); f = __kernel_logf(x); - x = x - 1; + x = x - (float)1.0; GET_FLOAT_WORD(hx,x); SET_FLOAT_WORD(hi,hx&0xfffff000); lo = x - hi;