src/gui/painting/qdrawhelper_p.h
changeset 30 5dc02b23752f
parent 18 2f34d5167611
child 33 3e2da88830cd
--- a/src/gui/painting/qdrawhelper_p.h	Wed Jun 23 19:07:03 2010 +0300
+++ b/src/gui/painting/qdrawhelper_p.h	Tue Jul 06 15:10:48 2010 +0300
@@ -67,17 +67,15 @@
 #include "QtGui/qscreen_qws.h"
 #endif
 
-// Disable MMX and SSE on Mac/PPC builds, or if the compiler
-// does not support -Xarch argument passing
-#if defined(QT_NO_MAC_XARCH) || (defined(Q_OS_DARWIN) && (defined(__ppc__) || defined(__ppc64__)))
-#undef QT_HAVE_SSE2
+QT_BEGIN_NAMESPACE
+
+#if defined(Q_OS_MAC) && (defined(__ppc__) || defined(__ppc64__))
+#undef QT_HAVE_MMX
 #undef QT_HAVE_SSE
+#undef QT_HAVE_SSE2
 #undef QT_HAVE_3DNOW
-#undef QT_HAVE_MMX
 #endif
 
-QT_BEGIN_NAMESPACE
-
 #if defined(Q_CC_MSVC) && _MSCVER <= 1300 && !defined(Q_CC_INTEL)
 #define Q_STATIC_TEMPLATE_SPECIALIZATION static
 #else
@@ -1649,7 +1647,7 @@
         return;
     }
 
-    const int align = (long(dest) & 3);
+    const int align = (quintptr(dest) & 3);
     switch (align) {
     case 1: *dest++ = qrgb666(*src++); --count;
     case 2: *dest++ = qrgb666(*src++); --count;