Commit 0276f55e authored by Martin Reinecke's avatar Martin Reinecke

warning fixes for clang++

parent cd58e6a1
...@@ -531,7 +531,7 @@ template<bool fwd, typename T> void pass2 (size_t ido, size_t l1, ...@@ -531,7 +531,7 @@ template<bool fwd, typename T> void pass2 (size_t ido, size_t l1,
auto CH = [ch,ido,l1](size_t a, size_t b, size_t c) -> T& auto CH = [ch,ido,l1](size_t a, size_t b, size_t c) -> T&
{ return ch[a+ido*(b+l1*c)]; }; { return ch[a+ido*(b+l1*c)]; };
auto CC = [cc,ido,cdim](size_t a, size_t b, size_t c) -> const T& auto CC = [cc,ido](size_t a, size_t b, size_t c) -> const T&
{ return cc[a+ido*(b+cdim*c)]; }; { return cc[a+ido*(b+cdim*c)]; };
auto WA = [wa, ido](size_t x, size_t i) auto WA = [wa, ido](size_t x, size_t i)
{ return wa[i-1+x*(ido-1)]; }; { return wa[i-1+x*(ido-1)]; };
...@@ -585,7 +585,7 @@ template<bool fwd, typename T> void pass3 (size_t ido, size_t l1, ...@@ -585,7 +585,7 @@ template<bool fwd, typename T> void pass3 (size_t ido, size_t l1,
auto CH = [ch,ido,l1](size_t a, size_t b, size_t c) -> T& auto CH = [ch,ido,l1](size_t a, size_t b, size_t c) -> T&
{ return ch[a+ido*(b+l1*c)]; }; { return ch[a+ido*(b+l1*c)]; };
auto CC = [cc,ido,cdim](size_t a, size_t b, size_t c) -> const T& auto CC = [cc,ido](size_t a, size_t b, size_t c) -> const T&
{ return cc[a+ido*(b+cdim*c)]; }; { return cc[a+ido*(b+cdim*c)]; };
auto WA = [wa, ido](size_t x, size_t i) auto WA = [wa, ido](size_t x, size_t i)
{ return wa[i-1+x*(ido-1)]; }; { return wa[i-1+x*(ido-1)]; };
...@@ -623,7 +623,7 @@ template<bool fwd, typename T> void pass4 (size_t ido, size_t l1, ...@@ -623,7 +623,7 @@ template<bool fwd, typename T> void pass4 (size_t ido, size_t l1,
auto CH = [ch,ido,l1](size_t a, size_t b, size_t c) -> T& auto CH = [ch,ido,l1](size_t a, size_t b, size_t c) -> T&
{ return ch[a+ido*(b+l1*c)]; }; { return ch[a+ido*(b+l1*c)]; };
auto CC = [cc,ido,cdim](size_t a, size_t b, size_t c) -> const T& auto CC = [cc,ido](size_t a, size_t b, size_t c) -> const T&
{ return cc[a+ido*(b+cdim*c)]; }; { return cc[a+ido*(b+cdim*c)]; };
auto WA = [wa, ido](size_t x, size_t i) auto WA = [wa, ido](size_t x, size_t i)
{ return wa[i-1+x*(ido-1)]; }; { return wa[i-1+x*(ido-1)]; };
...@@ -705,7 +705,7 @@ template<bool fwd, typename T> void pass5 (size_t ido, size_t l1, ...@@ -705,7 +705,7 @@ template<bool fwd, typename T> void pass5 (size_t ido, size_t l1,
auto CH = [ch,ido,l1](size_t a, size_t b, size_t c) -> T& auto CH = [ch,ido,l1](size_t a, size_t b, size_t c) -> T&
{ return ch[a+ido*(b+l1*c)]; }; { return ch[a+ido*(b+l1*c)]; };
auto CC = [cc,ido,cdim](size_t a, size_t b, size_t c) -> const T& auto CC = [cc,ido](size_t a, size_t b, size_t c) -> const T&
{ return cc[a+ido*(b+cdim*c)]; }; { return cc[a+ido*(b+cdim*c)]; };
auto WA = [wa, ido](size_t x, size_t i) auto WA = [wa, ido](size_t x, size_t i)
{ return wa[i-1+x*(ido-1)]; }; { return wa[i-1+x*(ido-1)]; };
...@@ -779,7 +779,7 @@ template<bool fwd, typename T> void pass7(size_t ido, size_t l1, ...@@ -779,7 +779,7 @@ template<bool fwd, typename T> void pass7(size_t ido, size_t l1,
auto CH = [ch,ido,l1](size_t a, size_t b, size_t c) -> T& auto CH = [ch,ido,l1](size_t a, size_t b, size_t c) -> T&
{ return ch[a+ido*(b+l1*c)]; }; { return ch[a+ido*(b+l1*c)]; };
auto CC = [cc,ido,cdim](size_t a, size_t b, size_t c) -> const T& auto CC = [cc,ido](size_t a, size_t b, size_t c) -> const T&
{ return cc[a+ido*(b+cdim*c)]; }; { return cc[a+ido*(b+cdim*c)]; };
auto WA = [wa, ido](size_t x, size_t i) auto WA = [wa, ido](size_t x, size_t i)
{ return wa[i-1+x*(ido-1)]; }; { return wa[i-1+x*(ido-1)]; };
...@@ -843,7 +843,7 @@ template<bool fwd, typename T> void pass8 (size_t ido, size_t l1, ...@@ -843,7 +843,7 @@ template<bool fwd, typename T> void pass8 (size_t ido, size_t l1,
auto CH = [ch,ido,l1](size_t a, size_t b, size_t c) -> T& auto CH = [ch,ido,l1](size_t a, size_t b, size_t c) -> T&
{ return ch[a+ido*(b+l1*c)]; }; { return ch[a+ido*(b+l1*c)]; };
auto CC = [cc,ido,cdim](size_t a, size_t b, size_t c) -> const T& auto CC = [cc,ido](size_t a, size_t b, size_t c) -> const T&
{ return cc[a+ido*(b+cdim*c)]; }; { return cc[a+ido*(b+cdim*c)]; };
auto WA = [wa, ido](size_t x, size_t i) auto WA = [wa, ido](size_t x, size_t i)
{ return wa[i-1+x*(ido-1)]; }; { return wa[i-1+x*(ido-1)]; };
...@@ -971,7 +971,7 @@ template<bool fwd, typename T> void pass11 (size_t ido, size_t l1, ...@@ -971,7 +971,7 @@ template<bool fwd, typename T> void pass11 (size_t ido, size_t l1,
auto CH = [ch,ido,l1](size_t a, size_t b, size_t c) -> T& auto CH = [ch,ido,l1](size_t a, size_t b, size_t c) -> T&
{ return ch[a+ido*(b+l1*c)]; }; { return ch[a+ido*(b+l1*c)]; };
auto CC = [cc,ido,cdim](size_t a, size_t b, size_t c) -> const T& auto CC = [cc,ido](size_t a, size_t b, size_t c) -> const T&
{ return cc[a+ido*(b+cdim*c)]; }; { return cc[a+ido*(b+cdim*c)]; };
auto WA = [wa, ido](size_t x, size_t i) auto WA = [wa, ido](size_t x, size_t i)
{ return wa[i-1+x*(ido-1)]; }; { return wa[i-1+x*(ido-1)]; };
...@@ -1290,7 +1290,7 @@ template<typename T> void radf2 (size_t ido, size_t l1, ...@@ -1290,7 +1290,7 @@ template<typename T> void radf2 (size_t ido, size_t l1,
auto WA = [wa,ido](size_t x, size_t i) { return wa[i+x*(ido-1)]; }; auto WA = [wa,ido](size_t x, size_t i) { return wa[i+x*(ido-1)]; };
auto CC = [cc,ido,l1](size_t a, size_t b, size_t c) -> const T& auto CC = [cc,ido,l1](size_t a, size_t b, size_t c) -> const T&
{ return cc[a+ido*(b+l1*c)]; }; { return cc[a+ido*(b+l1*c)]; };
auto CH = [ch,ido,cdim](size_t a, size_t b, size_t c) -> T& auto CH = [ch,ido](size_t a, size_t b, size_t c) -> T&
{ return ch[a+ido*(b+cdim*c)]; }; { return ch[a+ido*(b+cdim*c)]; };
for (size_t k=0; k<l1; k++) for (size_t k=0; k<l1; k++)
...@@ -1330,7 +1330,7 @@ template<typename T> void radf3(size_t ido, size_t l1, ...@@ -1330,7 +1330,7 @@ template<typename T> void radf3(size_t ido, size_t l1,
auto WA = [wa,ido](size_t x, size_t i) { return wa[i+x*(ido-1)]; }; auto WA = [wa,ido](size_t x, size_t i) { return wa[i+x*(ido-1)]; };
auto CC = [cc,ido,l1](size_t a, size_t b, size_t c) -> const T& auto CC = [cc,ido,l1](size_t a, size_t b, size_t c) -> const T&
{ return cc[a+ido*(b+l1*c)]; }; { return cc[a+ido*(b+l1*c)]; };
auto CH = [ch,ido,cdim](size_t a, size_t b, size_t c) -> T& auto CH = [ch,ido](size_t a, size_t b, size_t c) -> T&
{ return ch[a+ido*(b+cdim*c)]; }; { return ch[a+ido*(b+cdim*c)]; };
for (size_t k=0; k<l1; k++) for (size_t k=0; k<l1; k++)
...@@ -1370,7 +1370,7 @@ template<typename T> void radf4(size_t ido, size_t l1, ...@@ -1370,7 +1370,7 @@ template<typename T> void radf4(size_t ido, size_t l1,
auto WA = [wa,ido](size_t x, size_t i) { return wa[i+x*(ido-1)]; }; auto WA = [wa,ido](size_t x, size_t i) { return wa[i+x*(ido-1)]; };
auto CC = [cc,ido,l1](size_t a, size_t b, size_t c) -> const T& auto CC = [cc,ido,l1](size_t a, size_t b, size_t c) -> const T&
{ return cc[a+ido*(b+l1*c)]; }; { return cc[a+ido*(b+l1*c)]; };
auto CH = [ch,ido,cdim](size_t a, size_t b, size_t c) -> T& auto CH = [ch,ido](size_t a, size_t b, size_t c) -> T&
{ return ch[a+ido*(b+cdim*c)]; }; { return ch[a+ido*(b+cdim*c)]; };
for (size_t k=0; k<l1; k++) for (size_t k=0; k<l1; k++)
...@@ -1421,7 +1421,7 @@ template<typename T> void radf5(size_t ido, size_t l1, ...@@ -1421,7 +1421,7 @@ template<typename T> void radf5(size_t ido, size_t l1,
auto WA = [wa,ido](size_t x, size_t i) { return wa[i+x*(ido-1)]; }; auto WA = [wa,ido](size_t x, size_t i) { return wa[i+x*(ido-1)]; };
auto CC = [cc,ido,l1](size_t a, size_t b, size_t c) -> const T& auto CC = [cc,ido,l1](size_t a, size_t b, size_t c) -> const T&
{ return cc[a+ido*(b+l1*c)]; }; { return cc[a+ido*(b+l1*c)]; };
auto CH = [ch,ido,cdim](size_t a, size_t b, size_t c) -> T& auto CH = [ch,ido](size_t a, size_t b, size_t c) -> T&
{ return ch[a+ido*(b+cdim*c)]; }; { return ch[a+ido*(b+cdim*c)]; };
for (size_t k=0; k<l1; k++) for (size_t k=0; k<l1; k++)
...@@ -1620,7 +1620,7 @@ template<typename T> void radb2(size_t ido, size_t l1, ...@@ -1620,7 +1620,7 @@ template<typename T> void radb2(size_t ido, size_t l1,
constexpr size_t cdim=2; constexpr size_t cdim=2;
auto WA = [wa,ido](size_t x, size_t i) { return wa[i+x*(ido-1)]; }; auto WA = [wa,ido](size_t x, size_t i) { return wa[i+x*(ido-1)]; };
auto CC = [cc,ido,cdim](size_t a, size_t b, size_t c) -> const T& auto CC = [cc,ido](size_t a, size_t b, size_t c) -> const T&
{ return cc[a+ido*(b+cdim*c)]; }; { return cc[a+ido*(b+cdim*c)]; };
auto CH = [ch,ido,l1](size_t a, size_t b, size_t c) -> T& auto CH = [ch,ido,l1](size_t a, size_t b, size_t c) -> T&
{ return ch[a+ido*(b+l1*c)]; }; { return ch[a+ido*(b+l1*c)]; };
...@@ -1653,7 +1653,7 @@ template<typename T> void radb3(size_t ido, size_t l1, ...@@ -1653,7 +1653,7 @@ template<typename T> void radb3(size_t ido, size_t l1,
constexpr T0 taur=-0.5, taui=T0(0.8660254037844386467637231707529362L); constexpr T0 taur=-0.5, taui=T0(0.8660254037844386467637231707529362L);
auto WA = [wa,ido](size_t x, size_t i) { return wa[i+x*(ido-1)]; }; auto WA = [wa,ido](size_t x, size_t i) { return wa[i+x*(ido-1)]; };
auto CC = [cc,ido,cdim](size_t a, size_t b, size_t c) -> const T& auto CC = [cc,ido](size_t a, size_t b, size_t c) -> const T&
{ return cc[a+ido*(b+cdim*c)]; }; { return cc[a+ido*(b+cdim*c)]; };
auto CH = [ch,ido,l1](size_t a, size_t b, size_t c) -> T& auto CH = [ch,ido,l1](size_t a, size_t b, size_t c) -> T&
{ return ch[a+ido*(b+l1*c)]; }; { return ch[a+ido*(b+l1*c)]; };
...@@ -1694,7 +1694,7 @@ template<typename T> void radb4(size_t ido, size_t l1, ...@@ -1694,7 +1694,7 @@ template<typename T> void radb4(size_t ido, size_t l1,
constexpr T0 sqrt2=T0(1.414213562373095048801688724209698L); constexpr T0 sqrt2=T0(1.414213562373095048801688724209698L);
auto WA = [wa,ido](size_t x, size_t i) { return wa[i+x*(ido-1)]; }; auto WA = [wa,ido](size_t x, size_t i) { return wa[i+x*(ido-1)]; };
auto CC = [cc,ido,cdim](size_t a, size_t b, size_t c) -> const T& auto CC = [cc,ido](size_t a, size_t b, size_t c) -> const T&
{ return cc[a+ido*(b+cdim*c)]; }; { return cc[a+ido*(b+cdim*c)]; };
auto CH = [ch,ido,l1](size_t a, size_t b, size_t c) -> T& auto CH = [ch,ido,l1](size_t a, size_t b, size_t c) -> T&
{ return ch[a+ido*(b+l1*c)]; }; { return ch[a+ido*(b+l1*c)]; };
...@@ -1750,7 +1750,7 @@ template<typename T> void radb5(size_t ido, size_t l1, ...@@ -1750,7 +1750,7 @@ template<typename T> void radb5(size_t ido, size_t l1,
ti12= T0(0.5877852522924731291687059546390728L); ti12= T0(0.5877852522924731291687059546390728L);
auto WA = [wa,ido](size_t x, size_t i) { return wa[i+x*(ido-1)]; }; auto WA = [wa,ido](size_t x, size_t i) { return wa[i+x*(ido-1)]; };
auto CC = [cc,ido,cdim](size_t a, size_t b, size_t c) -> const T& auto CC = [cc,ido](size_t a, size_t b, size_t c) -> const T&
{ return cc[a+ido*(b+cdim*c)]; }; { return cc[a+ido*(b+cdim*c)]; };
auto CH = [ch,ido,l1](size_t a, size_t b, size_t c) -> T& auto CH = [ch,ido,l1](size_t a, size_t b, size_t c) -> T&
{ return ch[a+ido*(b+l1*c)]; }; { return ch[a+ido*(b+l1*c)]; };
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment