summaryrefslogtreecommitdiff
path: root/numpy/core/src/umathmodule.c.src
diff options
context:
space:
mode:
authorStefan van der Walt <stefan@sun.ac.za>2008-03-11 07:11:54 +0000
committerStefan van der Walt <stefan@sun.ac.za>2008-03-11 07:11:54 +0000
commit36674244c5ee307d821c982d497397bac93f260b (patch)
treef613875b805947c81d85df116c891a851ea2c3cd /numpy/core/src/umathmodule.c.src
parentb071bae9b7f22feb6b9bf348cf9e8585db505ad0 (diff)
downloadnumpy-36674244c5ee307d821c982d497397bac93f260b.tar.gz
Clear sign-bit when calculating absolute value.
Diffstat (limited to 'numpy/core/src/umathmodule.c.src')
-rw-r--r--numpy/core/src/umathmodule.c.src1
1 files changed, 1 insertions, 0 deletions
diff --git a/numpy/core/src/umathmodule.c.src b/numpy/core/src/umathmodule.c.src
index dfb50aba3..18a3df465 100644
--- a/numpy/core/src/umathmodule.c.src
+++ b/numpy/core/src/umathmodule.c.src
@@ -1489,6 +1489,7 @@ static void
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**/