Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 10 Feb 2011 07:37:29 +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: r218508 - head/lib/msun/src
Message-ID:  <201102100737.p1A7bTvV013580@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: das
Date: Thu Feb 10 07:37:29 2011
New Revision: 218508
URL: http://svn.freebsd.org/changeset/base/218508

Log:
  Fix a bogus threshold that was copied from the double precision version.
  This commit should have no effect on correctness; it merely changes the
  threshold at which a simpler approximation can be used.
  
  Reviewed by:	bde

Modified:
  head/lib/msun/src/e_expf.c

Modified: head/lib/msun/src/e_expf.c
==============================================================================
--- head/lib/msun/src/e_expf.c	Thu Feb 10 05:33:40 2011	(r218507)
+++ head/lib/msun/src/e_expf.c	Thu Feb 10 07:37:29 2011	(r218508)
@@ -72,7 +72,7 @@ __ieee754_expf(float x)	/* default IEEE 
 	    }
 	    x  = hi - lo;
 	}
-	else if(hx < 0x31800000)  {	/* when |x|<2**-28 */
+	else if(hx < 0x39000000)  {	/* when |x|<2**-14 */
 	    if(huge+x>one) return one+x;/* trigger inexact */
 	}
 	else k = 0;



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