From 21847180e22848dc0ea60c4b9a3236e83fa2e895 Mon Sep 17 00:00:00 2001 From: Konstantin Ritt Date: Wed, 27 Oct 2010 15:28:29 +0200 Subject: fix build with sse2 and without ssse3 Merge-request: 892 Reviewed-by: Olivier Goffart --- tests/benchmarks/corelib/tools/qstring/main.cpp | 2 ++ 1 file changed, 2 insertions(+) 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) -- cgit v0.12