diff options
author | Thiago Macieira <thiago.macieira@intel.com> | 2012-05-30 14:38:16 +0200 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-05-31 17:55:37 +0200 |
commit | 398c8513b172d4605a27dfa6125045b55e7cb29e (patch) | |
tree | b5997e08351873452745f8b20f22558d66710e40 /src/gui/painting/qdrawhelper_mips_dsp_p.h | |
parent | 5cbdba588a14e05fd282b5850a3e7b66fd9b2b65 (diff) |
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 <oswald.buddenhagen@nokia.com>
Diffstat (limited to 'src/gui/painting/qdrawhelper_mips_dsp_p.h')
-rw-r--r-- | src/gui/painting/qdrawhelper_mips_dsp_p.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gui/painting/qdrawhelper_mips_dsp_p.h b/src/gui/painting/qdrawhelper_mips_dsp_p.h index 55affca5d4..1a1e151cb5 100644 --- a/src/gui/painting/qdrawhelper_mips_dsp_p.h +++ b/src/gui/painting/qdrawhelper_mips_dsp_p.h @@ -46,7 +46,7 @@ QT_BEGIN_NAMESPACE -#if defined(QT_HAVE_MIPS_DSP) +#if defined(QT_COMPILER_SUPPORTS_MIPS_DSP) extern "C" void qt_memfill32_asm_mips_dsp(quint32 *dest, quint32 value, int count); @@ -71,13 +71,13 @@ uint * QT_FASTCALL qt_destFetchARGB32_mips_dsp(uint *buffer, void QT_FASTCALL qt_destStoreARGB32_mips_dsp(QRasterBuffer *rasterBuffer, int x, int y, const uint *buffer, int length); -#ifdef QT_HAVE_MIPS_DSPR2 +#ifdef QT_COMPILER_SUPPORTS_MIPS_DSPR2 extern "C" void qConvertRgb16To32_asm_mips_dspr2(quint32 *dest, const quint16 *src, int length); -#endif // QT_HAVE_MIPS_DSPR2 +#endif // QT_COMPILER_SUPPORTS_MIPS_DSPR2 -#endif // QT_HAVE_MIPS_DSP +#endif // QT_COMPILER_SUPPORTS_MIPS_DSP QT_END_NAMESPACE |