Re: svn commit: r239195 - head/lib/msun/src

2012-09-06 Thread Bruce Evans

On Sat, 11 Aug 2012, Dimitry Andric wrote:


Log:
 Add __always_inline to __ieee754_rem_pio2() and __ieee754_rem_pio2f(),
 since some older versions of gcc refuse to inline these otherwise.

 Requested by:  bde
 MFC after: 1 week


Thanks.  It works well to reduce unportabilities.

Bruce
___
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"


svn commit: r239195 - head/lib/msun/src

2012-08-11 Thread Dimitry Andric
Author: dim
Date: Sat Aug 11 15:47:22 2012
New Revision: 239195
URL: http://svn.freebsd.org/changeset/base/239195

Log:
  Add __always_inline to __ieee754_rem_pio2() and __ieee754_rem_pio2f(),
  since some older versions of gcc refuse to inline these otherwise.
  
  Requested by: bde
  MFC after:1 week

Modified:
  head/lib/msun/src/e_rem_pio2.c
  head/lib/msun/src/e_rem_pio2f.c

Modified: head/lib/msun/src/e_rem_pio2.c
==
--- head/lib/msun/src/e_rem_pio2.c  Sat Aug 11 15:08:19 2012
(r239194)
+++ head/lib/msun/src/e_rem_pio2.c  Sat Aug 11 15:47:22 2012
(r239195)
@@ -49,7 +49,7 @@ pio2_3  =  2.02226624871116645580e-21, /
 pio2_3t =  8.47842766036889956997e-32; /* 0x397B839A, 0x252049C1 */
 
 #ifdef INLINE_REM_PIO2
-static __inline
+static __inline __always_inline
 #endif
 int
 __ieee754_rem_pio2(double x, double *y)

Modified: head/lib/msun/src/e_rem_pio2f.c
==
--- head/lib/msun/src/e_rem_pio2f.c Sat Aug 11 15:08:19 2012
(r239194)
+++ head/lib/msun/src/e_rem_pio2f.c Sat Aug 11 15:47:22 2012
(r239195)
@@ -41,7 +41,7 @@ pio2_1  =  1.57079631090164184570e+00, /
 pio2_1t =  1.58932547735281966916e-08; /* 0x3E5110b4, 0x611A6263 */
 
 #ifdef INLINE_REM_PIO2F
-static __inline
+static __inline __always_inline
 #endif
 int
 __ieee754_rem_pio2f(float x, double *y)
___
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"