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;
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to