qt5base-lts/tests/auto/corelib
Thiago Macieira 3b61cd6ad7 QStringView: De-inline the length calculation so we can use SSE2
Performance is more important in this case than the theoretical benefit
of constexpr. This commit implements the SSE2 search for 16-bit null and
it might be possible to implement the equivalent for AArch64
(investigation required). It also adds a fallback to wcslen() for
systems where wchar_t is short (non-x86 Windows or 32-bit x86 build with
-no-sse2).

We can re-add the constexpr loop once the C++ language has a way of
overloading constexpr and non-constexpr. GCC has a non-standard way to
do that with __builtin_constant_p, which is also implemented in this
commit, but note that the inline function is still not constexpr.

Change-Id: I6e9274c1e7444ad48c81fffd14dcaacafda5ebdc
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@qt.io>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
2017-09-13 16:19:45 +00:00
..
animation Blacklist tst_QParallelAnimationGroup::deleteChildrenWithRunningGroup() 2017-06-19 18:33:47 +00:00
codecs QTextCodec: add QStringView overloads 2017-04-06 12:05:33 +00:00
global Long live qEnvironmentVariable() 2017-08-04 11:19:13 +00:00
io Merge remote-tracking branch 'origin/5.9' into 5.10 2017-09-06 13:26:31 +02:00
itemmodels QSFPM: Avoid following a reset with unnecessary layoutChanged 2017-06-28 07:00:20 +00:00
json Improve symmetry of variant json conversions 2017-07-25 09:00:46 +00:00
kernel Remove timer checks from testQuitLock 2017-08-22 05:10:48 +00:00
mimetypes Merge remote-tracking branch 'origin/5.9' into dev 2017-05-29 10:54:41 +02:00
plugin QUuid: add fromString(QStringView/QLatin1String) 2017-04-20 17:02:44 +00:00
statemachine Merge "Merge remote-tracking branch 'origin/5.6' into dev" into refs/staging/dev 2016-01-26 11:27:37 +00:00
thread Merge remote-tracking branch 'origin/5.9' into 5.10 2017-09-06 13:26:31 +02:00
tools QStringView: De-inline the length calculation so we can use SSE2 2017-09-13 16:19:45 +00:00
xml Build examples and tests only if their requirements are met 2017-03-22 15:55:55 +00:00
corelib.pro Add support for Apple tvOS 2016-05-17 16:11:23 +00:00