Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
N
numexpr
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Debian Science Team
numexpr
Commits
5c1edd14
Commit
5c1edd14
authored
8 years ago
by
Antonio Valentino
Browse files
Options
Downloads
Patches
Plain Diff
Fix build failure on ppc64el and powerpc
parent
941852b2
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
debian/changelog
+8
-0
8 additions, 0 deletions
debian/changelog
debian/patches/0001-fix-test-on-powerpc-and-ppc64el.patch
+24
-0
24 additions, 0 deletions
debian/patches/0001-fix-test-on-powerpc-and-ppc64el.patch
debian/patches/series
+1
-0
1 addition, 0 deletions
debian/patches/series
with
33 additions
and
0 deletions
debian/changelog
+
8
−
0
View file @
5c1edd14
numexpr (2.6.1-2) UNRELEASED; urgency=high
* debian/patches
- new patch to fix test failures on ppc64el and powerpc
See also upstream bug #224 (https://github.com/pydata/numexpr/issues/224)
-- Antonio Valentino <antonio.valentino@tiscali.it> Sat, 26 Nov 2016 16:06:19 +0000
numexpr (2.6.1-1) unstable; urgency=medium
* New upstream release
...
...
This diff is collapsed.
Click to expand it.
debian/patches/0001-fix-test-on-powerpc-and-ppc64el.patch
0 → 100644
+
24
−
0
View file @
5c1edd14
From: Antonio Valentino <antonio.valentino@tiscali.it>
Date: Sat, 26 Nov 2016 16:02:27 +0000
Subject: fix test on powerpc and ppc64el
See also upstream bug #224 [1]
[1] https://github.com/pydata/numexpr/issues/224
---
numexpr/interp_body.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/numexpr/interp_body.cpp b/numexpr/interp_body.cpp
index 475a89f..a8c2911 100644
--- a/numexpr/interp_body.cpp
+++ b/numexpr/interp_body.cpp
@@ -271,7 +271,7 @@
case OP_SUB_LLL: VEC_ARG2(l_dest = l1 - l2);
case OP_MUL_LLL: VEC_ARG2(l_dest = l1 * l2);
case OP_DIV_LLL: VEC_ARG2(l_dest = l2 ? (l1 / l2) : 0);
- case OP_POW_LLL: VEC_ARG2(l_dest = (l2 < 0) ? (1 / l1) : (long long)pow((long double)l1, (long double)l2));
+ case OP_POW_LLL: VEC_ARG2(l_dest = (l2 < 0) ? (1 / l1) : (long long)round(pow((long double)l1, (long double)l2)));
case OP_MOD_LLL: VEC_ARG2(l_dest = l2 ? (l1 % l2) : 0);
case OP_LSHIFT_LLL: VEC_ARG2(l_dest = l1 << l2);
case OP_RSHIFT_LLL: VEC_ARG2(l_dest = l1 >> l2);
This diff is collapsed.
Click to expand it.
debian/patches/series
0 → 100644
+
1
−
0
View file @
5c1edd14
0001-fix-test-on-powerpc-and-ppc64el.patch
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment