[Numpy-svn] r3381 - trunk/numpy/core/include/numpy

numpy-svn at scipy.org numpy-svn at scipy.org
Mon Oct 23 14:43:02 CDT 2006


Author: oliphant
Date: 2006-10-23 14:42:59 -0500 (Mon, 23 Oct 2006)
New Revision: 3381

Modified:
   trunk/numpy/core/include/numpy/ufuncobject.h
Log:
Use fp_swap_flag(0) to reset flags on AIX.  Ticket #362

Modified: trunk/numpy/core/include/numpy/ufuncobject.h
===================================================================
--- trunk/numpy/core/include/numpy/ufuncobject.h	2006-10-23 16:30:18 UTC (rev 3380)
+++ trunk/numpy/core/include/numpy/ufuncobject.h	2006-10-23 19:42:59 UTC (rev 3381)
@@ -311,7 +311,7 @@
 		| ((FP_OVERFLOW & fpstatus) ? UFUNC_FPE_OVERFLOW : 0)	\
 		| ((FP_UNDERFLOW & fpstatus) ? UFUNC_FPE_UNDERFLOW : 0) \
 		| ((FP_INVALID & fpstatus) ? UFUNC_FPE_INVALID : 0); \
-	fp_clr_flag( FP_DIV_BY_ZERO | FP_OVERFLOW | FP_UNDERFLOW | FP_INVALID); \
+	fp_swap_flag(0); \
 }
 
 #define generate_divbyzero_error() fp_raise_xcp(FP_DIV_BY_ZERO)



More information about the Numpy-svn mailing list