diff options
author | Konstantin Ritt <ritt.ks@gmail.com> | 2010-10-27 13:28:29 (GMT) |
---|---|---|
committer | Olivier Goffart <olivier.goffart@nokia.com> | 2010-10-27 13:28:29 (GMT) |
commit | 21847180e22848dc0ea60c4b9a3236e83fa2e895 (patch) | |
tree | 987137291ce68a6a08b364b9a5a56589331ad08c /tests/benchmarks/corelib/tools | |
parent | b09dd9976572faa5f298363c21789681fe65dfe6 (diff) | |
download | Qt-21847180e22848dc0ea60c4b9a3236e83fa2e895.zip Qt-21847180e22848dc0ea60c4b9a3236e83fa2e895.tar.gz Qt-21847180e22848dc0ea60c4b9a3236e83fa2e895.tar.bz2 |
fix build with sse2 and without ssse3
Merge-request: 892
Reviewed-by: Olivier Goffart <olivier.goffart@nokia.com>
Diffstat (limited to 'tests/benchmarks/corelib/tools')
-rw-r--r-- | tests/benchmarks/corelib/tools/qstring/main.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/benchmarks/corelib/tools/qstring/main.cpp b/tests/benchmarks/corelib/tools/qstring/main.cpp index 9616052..eafcc24 100644 --- a/tests/benchmarks/corelib/tools/qstring/main.cpp +++ b/tests/benchmarks/corelib/tools/qstring/main.cpp @@ -1007,6 +1007,7 @@ static inline __attribute__((optimize("no-unroll-loops"))) int ucstrncmp_sse2_al return ucstrncmp_short_tail(a + counter, b + counter, len); } +#ifdef __SSSE3__ static inline __attribute__((optimize("no-unroll-loops"))) int ucstrncmp_ssse3_alignr_aligned(const ushort *a, const ushort *b, int len) { quintptr counter = 0; @@ -1276,6 +1277,7 @@ static int ucstrncmp_ssse3_aligning2(const ushort *a, const ushort *b, int len) } #endif +#endif typedef int (* UcstrncmpFunction)(const ushort *, const ushort *, int); Q_DECLARE_METATYPE(UcstrncmpFunction) |