From 398c8513b172d4605a27dfa6125045b55e7cb29e Mon Sep 17 00:00:00 2001 From: Thiago Macieira Date: Wed, 30 May 2012 14:38:16 +0200 Subject: Overhaul the qsimd_p.h: rename macros and update conditionals The QT_HAVE_xxx macros are replaced with QT_COMPILER_SUPPORTS_xxx. They indicate that the compiler supports those intrinsics, but not necessarily that they can be used right now. ICC and MSVC allow one to use the intrinsics anywhere, but for Qt all uses of the intrinsics are either in specially-built files, protected by runtime checks, or they are unconditional (qstring.cpp). So we only use the intrinsics when the compiler was instructed to generate code for that instruction set anyway. Change-Id: Ie58eebbc0518ad1d5420a85174fd84153bb9abaa Reviewed-by: Oswald Buddenhagen --- src/gui/image/qimage_ssse3.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/gui/image/qimage_ssse3.cpp') diff --git a/src/gui/image/qimage_ssse3.cpp b/src/gui/image/qimage_ssse3.cpp index 2ca80ef3bb..0fa2b4bb7b 100644 --- a/src/gui/image/qimage_ssse3.cpp +++ b/src/gui/image/qimage_ssse3.cpp @@ -43,7 +43,7 @@ #include #include -#ifdef QT_HAVE_SSSE3 +#ifdef QT_COMPILER_SUPPORTS_SSSE3 QT_BEGIN_NAMESPACE @@ -146,4 +146,4 @@ void convert_RGB888_to_RGB32_ssse3(QImageData *dest, const QImageData *src, Qt:: QT_END_NAMESPACE -#endif // QT_HAVE_SSSE3 +#endif // QT_COMPILER_SUPPORTS_SSSE3 -- cgit v1.2.3