Fix missing CPU feature feedback

Add empty string first like we have for x86.
This fixes offset checks, and reported missing features.

Pick-to: 6.1
Change-Id: I09f6be05641d5ed9ae5d91fa72f678fef60bdbe7
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
Allan Sandfeld Jensen 2021-04-20 13:43:08 +02:00
parent fadd87ed15
commit 3b8031059a

View File

@ -89,12 +89,6 @@
QT_BEGIN_NAMESPACE QT_BEGIN_NAMESPACE
/*
* Use kdesdk/scripts/generate_string_table.pl to update the table below. Note
* we remove the terminating -1 that the script adds.
*/
// begin generated
#if defined(Q_PROCESSOR_ARM) #if defined(Q_PROCESSOR_ARM)
/* Data: /* Data:
neon neon
@ -102,23 +96,23 @@ QT_BEGIN_NAMESPACE
aes aes
*/ */
static const char features_string[] = static const char features_string[] =
"\0"
" neon\0" " neon\0"
" crc32\0" " crc32\0"
" aes\0" " aes\0";
"\0"; static const int features_indices[] = { 0, 1, 7, 14 };
static const int features_indices[] = { 0, 6, 13 };
#elif defined(Q_PROCESSOR_MIPS) #elif defined(Q_PROCESSOR_MIPS)
/* Data: /* Data:
dsp dsp
dspr2 dspr2
*/ */
static const char features_string[] = static const char features_string[] =
"\0"
" dsp\0" " dsp\0"
" dspr2\0" " dspr2\0";
"\0";
static const int features_indices[] = { static const int features_indices[] = {
0, 5 0, 1, 6
}; };
#elif defined(Q_PROCESSOR_X86) #elif defined(Q_PROCESSOR_X86)
# include "qsimd_x86.cpp" // generated by util/x86simdgen # include "qsimd_x86.cpp" // generated by util/x86simdgen