From 3a2f4bde14221ccc5b81666b3ab8b08f1fdc36e9 Mon Sep 17 00:00:00 2001 From: Thiago Macieira Date: Sat, 4 Mar 2017 14:00:26 -0600 Subject: 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 --- src/corelib/tools/qbytearraymatcher.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/corelib/tools/qbytearraymatcher.h') 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; -- cgit v1.2.3