diff options
author | Thiago Macieira <thiago.macieira@intel.com> | 2017-03-04 14:00:26 -0600 |
---|---|---|
committer | Thiago Macieira <thiago.macieira@intel.com> | 2017-03-06 09:42:45 +0000 |
commit | 3a2f4bde14221ccc5b81666b3ab8b08f1fdc36e9 (patch) | |
tree | 41e22e56471845a805d67f7c1011807cf65b28c1 /src/corelib/tools/qbytearraymatcher.h | |
parent | 03b3f7a3af49faecf6ac460c44343063e9597ce4 (diff) |
QStaticByteArrayMatcher: enforce alignment
The data is 256 bytes, so might as well align it on a 16-byte boundary
to facilitate copying (if that happens). We should consider similar for
QByteArrayMatcher in 6.0.
Change-Id: I74966ed02f674a7295f8fffd14a8c64526d734bb
Reviewed-by: Marc Mutz <marc.mutz@kdab.com>
Diffstat (limited to 'src/corelib/tools/qbytearraymatcher.h')
-rw-r--r-- | src/corelib/tools/qbytearraymatcher.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/corelib/tools/qbytearraymatcher.h b/src/corelib/tools/qbytearraymatcher.h index e3ab25c152..c1c0c3a660 100644 --- a/src/corelib/tools/qbytearraymatcher.h +++ b/src/corelib/tools/qbytearraymatcher.h @@ -85,6 +85,7 @@ private: class QStaticByteArrayMatcherBase { + Q_DECL_ALIGN(16) struct Skiptable { uchar data[256]; } m_skiptable; |