Unicode conversion: Skip superfluous check for QT_COMPILER_SUPPORTS_SSE2
We already check for __SSE2__, which gets undefined when __SSE2__ is not set. Moreover, we want to use the intrinsics without a runtime check there, so checking for __SSE2__ is the correct thing to do. Change-Id: I7f8610e2927650b439c3697585234b843e345e4c Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
parent
92e696b4ba
commit
00b46bf4f8
@ -40,8 +40,7 @@ enum { Endian = 0, Data = 1 };
|
||||
|
||||
static const uchar utf8bom[] = { 0xef, 0xbb, 0xbf };
|
||||
|
||||
#if (defined(__SSE2__) && defined(QT_COMPILER_SUPPORTS_SSE2)) \
|
||||
|| defined(__ARM_NEON__)
|
||||
#if defined(__SSE2__) || defined(__ARM_NEON__)
|
||||
static Q_ALWAYS_INLINE uint qBitScanReverse(unsigned v) noexcept
|
||||
{
|
||||
#if defined(__cpp_lib_int_pow2) && __cpp_lib_int_pow2 >= 202002L
|
||||
@ -57,7 +56,7 @@ static Q_ALWAYS_INLINE uint qBitScanReverse(unsigned v) noexcept
|
||||
}
|
||||
#endif
|
||||
|
||||
#if defined(__SSE2__) && defined(QT_COMPILER_SUPPORTS_SSE2)
|
||||
#if defined(__SSE2__)
|
||||
static inline bool simdEncodeAscii(uchar *&dst, const char16_t *&nextAscii, const char16_t *&src, const char16_t *end)
|
||||
{
|
||||
// do sixteen characters at a time
|
||||
|
Loading…
Reference in New Issue
Block a user