[Numpy-svn] r4861 - trunk/numpy/core/src
numpy-svn at scipy.org
numpy-svn at scipy.org
Tue Mar 11 03:11:57 EDT 2008
Author: stefan
Date: 2008-03-11 02:11:54 -0500 (Tue, 11 Mar 2008)
New Revision: 4861
Modified:
trunk/numpy/core/src/umathmodule.c.src
Log:
Clear sign-bit when calculating absolute value.
Modified: trunk/numpy/core/src/umathmodule.c.src
===================================================================
--- trunk/numpy/core/src/umathmodule.c.src 2008-03-11 05:47:42 UTC (rev 4860)
+++ trunk/numpy/core/src/umathmodule.c.src 2008-03-11 07:11:54 UTC (rev 4861)
@@ -1489,6 +1489,7 @@
n=dimensions[0];
for(i=0; i<n; i++, i1+=is1, op+=os) {
*((@typ@ *)op) = *((@typ@ *)i1) < 0 ? -*((@typ@ *)i1) : *((@typ@ *)i1);
+ *((@typ@ *)op) += 0; // clear sign-bit
}
}
/**end repeat**/
More information about the Numpy-svn
mailing list