This forum has been archived. All content is frozen. Please use KDE Discuss instead.

g++ warnings re use of long long int in Inverse_SSE.h

Tags: None
(comma "," separated)
dmbates
Registered Member
Posts
24
Karma
0
OS
On an Ubuntu 11.04 amd_64 system, using g++ 4.5.2 I get warnings about the use of long long int in the const declarations

Eigen/src/LU/arch/Inverse_SSE.h:185:5: warning: ISO C++ 1998 does not support ‘long long’

Is there a way to circumvent this? For some of our code we need to specify the -std=c++98. In other words, going to -std=c++0x is not an option for us right now.
jitseniesen
Registered Member
Posts
204
Karma
2
One possibility is to compile with -Wno-long-long .
dmbates
Registered Member
Posts
24
Karma
0
OS
jitseniesen wrote:One possibility is to compile with -Wno-long-long .


I was thinking more along the lines of using a const __m128d mask as is done in Eigen/src/Core/arch/SSE/Complex.h. It seems to me that the quantities that are declared as long long int are used as __m128d so why not declare them like

const __m128d _Sign_NP = _mm_castsi128_pd(_mm_set_epi32(0x80000000,0x0,0x0,0x0));
User avatar
ggael
Moderator
Posts
3447
Karma
19
OS
fixed in default and 3.0 branches.


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], q.ignora, watchstar