[clfft] 15/23: bug fix for length 1
Ghislain Vaillant
ghisvail-guest at moszumanska.debian.org
Tue Aug 18 16:08:21 UTC 2015
This is an automated email from the git hooks/post-receive script.
ghisvail-guest pushed a commit to branch debian/sid
in repository clfft.
commit 81be7cddefa8d5c049712fbcdfbe5a1cc09f63f0
Author: bragadeesh <bragadeesh.natarajan at amd>
Date: Fri Aug 7 10:26:14 2015 -0500
bug fix for length 1
---
src/library/generator.stockham.cpp | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/library/generator.stockham.cpp b/src/library/generator.stockham.cpp
index 4f39e0c..4161279 100644
--- a/src/library/generator.stockham.cpp
+++ b/src/library/generator.stockham.cpp
@@ -1347,7 +1347,7 @@ namespace StockhamGenerator
std::string oddpadd = oddp ? " (me/2) + " : " ";
std::string idxStr, idxStrRev;
- if((length == 2) || ((length & (length - 1)) != 0))
+ if((length <= 2) || ((length & (length - 1)) != 0))
{
idxStr += SztToStr(bid); idxStr += "*me +"; idxStr += oddpadd; idxStr += SztToStr(lid);
}
@@ -1468,7 +1468,7 @@ namespace StockhamGenerator
if(fwd)
{
std::string idxStr, idxStrRev;
- if((length == 2) || ((length & (length - 1)) != 0))
+ if((length <= 2) || ((length & (length - 1)) != 0))
{
idxStr += SztToStr(length/(2*workGroupSize)); idxStr += "*me +"; idxStr += oddpadd; idxStr += SztToStr(lid);
}
@@ -1541,7 +1541,7 @@ namespace StockhamGenerator
else
{
std::string idxStr, idxStrRev;
- if((length == 2) || ((length & (length - 1)) != 0))
+ if((length <= 2) || ((length & (length - 1)) != 0))
{
idxStr += SztToStr(bid); idxStr += "*me +"; idxStr += oddpadd; idxStr += SztToStr(lid);
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/clfft.git
More information about the debian-science-commits
mailing list