mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
Shut up two bogus gcc 4.3 warnings
This commit is contained in:
@@ -62,7 +62,10 @@ template<> inline __m128i ei_pmul(const __m128i& a, const __m128i& b)
|
|||||||
template<> inline __m128 ei_pdiv(const __m128& a, const __m128& b) { return _mm_div_ps(a,b); }
|
template<> inline __m128 ei_pdiv(const __m128& a, const __m128& b) { return _mm_div_ps(a,b); }
|
||||||
template<> inline __m128d ei_pdiv(const __m128d& a, const __m128d& b) { return _mm_div_pd(a,b); }
|
template<> inline __m128d ei_pdiv(const __m128d& a, const __m128d& b) { return _mm_div_pd(a,b); }
|
||||||
template<> inline __m128i ei_pdiv(const __m128i& /*a*/, const __m128i& /*b*/)
|
template<> inline __m128i ei_pdiv(const __m128i& /*a*/, const __m128i& /*b*/)
|
||||||
{ ei_assert(false && "packet integer division are not supported by SSE"); }
|
{ ei_assert(false && "packet integer division are not supported by SSE");
|
||||||
|
__m128i dummy;
|
||||||
|
return dummy;
|
||||||
|
}
|
||||||
|
|
||||||
// for some weird raisons, it has to be overloaded for packet integer
|
// for some weird raisons, it has to be overloaded for packet integer
|
||||||
template<> inline __m128i ei_pmadd(const __m128i& a, const __m128i& b, const __m128i& c) { return ei_padd(ei_pmul(a,b), c); }
|
template<> inline __m128i ei_pmadd(const __m128i& a, const __m128i& b, const __m128i& c) { return ei_padd(ei_pmul(a,b), c); }
|
||||||
|
|||||||
@@ -129,7 +129,8 @@ struct ei_result_of<Func(ArgType0,ArgType1)> {
|
|||||||
template<int Y,
|
template<int Y,
|
||||||
int InfX = 0,
|
int InfX = 0,
|
||||||
int SupX = ((Y==1) ? 1 : Y/2),
|
int SupX = ((Y==1) ? 1 : Y/2),
|
||||||
bool Done = (((SupX-InfX)<=1) || ( (SupX*SupX <= Y) && ((SupX+1)*(SupX+1) > Y))) >
|
bool Done = ((SupX-InfX)<=1 ? true : ((SupX*SupX <= Y) && ((SupX+1)*(SupX+1) > Y))) >
|
||||||
|
// use ?: instead of || just to shut up a stupid gcc 4.3 warning
|
||||||
class ei_meta_sqrt
|
class ei_meta_sqrt
|
||||||
{
|
{
|
||||||
enum {
|
enum {
|
||||||
|
|||||||
Reference in New Issue
Block a user