[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [kdelibs/frameworks] tier1/solid/src/solid: add MSVC checks for SSE instruction sets
From:       Patrick Spendrin <ps_ml () gmx ! de>
Date:       2013-02-06 23:45:38
Message-ID: 20130206234538.6DF0FA6091 () git ! kde ! org
[Download RAW message or body]

Git commit 958fe075f2311613d8a088abe363a8caca7c053a by Patrick Spendrin.
Committed on 07/02/2013 at 00:38.
Pushed by sengels into branch 'frameworks'.

add MSVC checks for SSE instruction sets

M  +23   -16   tier1/solid/src/solid/CMakeLists.txt

http://commits.kde.org/kdelibs/958fe075f2311613d8a088abe363a8caca7c053a

diff --git a/tier1/solid/src/solid/CMakeLists.txt b/tier1/solid/src/solid/C=
MakeLists.txt
index 19bd869..a739491 100644
--- a/tier1/solid/src/solid/CMakeLists.txt
+++ b/tier1/solid/src/solid/CMakeLists.txt
@@ -1,21 +1,28 @@
 include (CheckCXXSourceCompiles)
 =

-check_cxx_source_compiles("	#ifdef __SUNPRO_CC
-					#define __asm__ asm
-				#endif
-				int main() { __asm__(\"pxor %mm0, %mm0\") ; }" HAVE_X86_MMX)
-check_cxx_source_compiles("     #ifdef __SUNPRO_CC
-                                        #define __asm__ asm
-                                #endif
-				int main() { __asm__(\"xorps %xmm0, %xmm0\"); }" HAVE_X86_SSE)
-check_cxx_source_compiles("     #ifdef __SUNPRO_CC
-                                        #define __asm__ asm
-                                #endif
-				int main() { __asm__(\"xorpd %xmm0, %xmm0\"); }" HAVE_X86_SSE2)
-check_cxx_source_compiles("     #ifdef __SUNPRO_CC
-                                        #define __asm__ asm
-                                #endif
-				int main() { __asm__(\"femms\"); }" HAVE_X86_3DNOW)
+if(MSVC)
+    check_cxx_source_compiles("int main() { __asm { pxor mm0, mm0 }; }" HA=
VE_X86_MMX)
+    check_cxx_source_compiles("int main() { __asm { xorps xmm0, xmm0 }; }"=
 HAVE_X86_SSE)
+    check_cxx_source_compiles("int main() { __asm { xorpd xmm0, xmm0 }; }"=
 HAVE_X86_SSE2)
+    check_cxx_source_compiles("int main() { __asm { femms }; }" HAVE_X86_3=
DNOW)
+else(MSVC)
+    check_cxx_source_compiles("	    #ifdef __SUNPRO_CC
+                                            #define __asm__ asm
+                                    #endif
+                    int main() { __asm__(\"pxor %mm0, %mm0\") ; }" HAVE_X8=
6_MMX)
+    check_cxx_source_compiles("     #ifdef __SUNPRO_CC
+                                            #define __asm__ asm
+                                    #endif
+                    int main() { __asm__(\"xorps %xmm0, %xmm0\"); }" HAVE_=
X86_SSE)
+    check_cxx_source_compiles("     #ifdef __SUNPRO_CC
+                                            #define __asm__ asm
+                                    #endif
+                    int main() { __asm__(\"xorpd %xmm0, %xmm0\"); }" HAVE_=
X86_SSE2)
+    check_cxx_source_compiles("     #ifdef __SUNPRO_CC
+                                            #define __asm__ asm
+                                    #endif
+                    int main() { __asm__(\"femms\"); }" HAVE_X86_3DNOW)
+endif(MSVC)
 check_cxx_source_compiles("     #ifdef __SUNPRO_CC
                                         #define __asm__ asm
                                 #endif
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic