[Numpy-svn] r5666 - trunk/numpy/core/include/numpy/fenv

numpy-svn@scip... numpy-svn@scip...
Wed Aug 20 17:03:34 CDT 2008


Author: cdavid
Date: 2008-08-20 17:03:19 -0500 (Wed, 20 Aug 2008)
New Revision: 5666

Modified:
   trunk/numpy/core/include/numpy/fenv/fenv.h
Log:
Update fenv.h for cygwin: all asm calls should be tagged as volatile.

Modified: trunk/numpy/core/include/numpy/fenv/fenv.h
===================================================================
--- trunk/numpy/core/include/numpy/fenv/fenv.h	2008-08-20 15:48:17 UTC (rev 5665)
+++ trunk/numpy/core/include/numpy/fenv/fenv.h	2008-08-20 22:03:19 UTC (rev 5666)
@@ -68,9 +68,9 @@
 #define	__fldcw(__cw)		__asm __volatile("fldcw %0" : : "m" (__cw))
 #define	__fldenv(__env)		__asm __volatile("fldenv %0" : : "m" (__env))
 #define	__fnclex()		__asm __volatile("fnclex")
-#define	__fnstenv(__env)	__asm("fnstenv %0" : "=m" (*(__env)))
-#define	__fnstcw(__cw)		__asm("fnstcw %0" : "=m" (*(__cw)))
-#define	__fnstsw(__sw)		__asm("fnstsw %0" : "=am" (*(__sw)))
+#define	__fnstenv(__env)	__asm __volatile("fnstenv %0" : "=m" (*(__env)))
+#define	__fnstcw(__cw)		__asm __volatile("fnstcw %0" : "=m" (*(__cw)))
+#define	__fnstsw(__sw)		__asm __volatile("fnstsw %0" : "=am" (*(__sw)))
 #define	__fwait()		__asm __volatile("fwait")
 
 static __inline int



More information about the Numpy-svn mailing list