Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 7 Dec 2010 03:29:36 +0000 (UTC)
From:      David Schultz <das@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r216248 - head/lib/msun/src
Message-ID:  <201012070329.oB73Ta6m053003@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201012070329.oB73Ta6m053003>