qt5base-lts/tests/benchmarks/corelib/tools
Thiago Macieira 0a78d918f0 Replace qAllocMore with a pair of more useful functions
The first is "exact", not "more": qCalculateBlockSize. It ensures that
there's no overflow in multiplying, adding the header size or when
converting back to an int.

The second is the replacement for qAllocMore: it calculates the block
size like the first, but increases the block size to accommodate future
appends. The number of elements that fit in the block is also returned.

Task-number: QTBUG-41230
Change-Id: I52dd43c12685407bb9a6ffff13f5da09f816e667
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
2016-06-09 15:32:14 +00:00
..
containers-associative Updated license headers 2016-01-21 18:55:18 +00:00
containers-sequential Updated license headers 2016-01-21 18:55:18 +00:00
qalgorithms Updated license headers 2016-01-21 18:55:18 +00:00
qbytearray Add Intel copyright to files that Intel has had non-trivial contribution 2016-01-21 22:44:21 +00:00
qchar Updated license headers 2016-01-21 18:55:18 +00:00
qcontiguouscache Updated license headers 2016-01-21 18:55:18 +00:00
qcryptographichash Update the Intel copyright year 2016-01-21 22:44:16 +00:00
qdatetime Updated license headers 2016-01-21 18:55:18 +00:00
qhash Add Intel copyright to files that Intel has had non-trivial contribution 2016-01-21 22:44:21 +00:00
qlist Updated license headers 2016-01-21 18:55:18 +00:00
qlocale Updated license headers 2016-01-21 18:55:18 +00:00
qmap Updated license headers 2016-01-21 18:55:18 +00:00
qrect Updated license headers 2016-01-21 18:55:18 +00:00
qregexp Updated license headers 2016-01-21 18:55:18 +00:00
qringbuffer Updated license headers 2016-01-21 18:55:18 +00:00
qset Updated license headers 2016-01-21 18:55:18 +00:00
qstack Updated license headers 2016-01-21 18:55:18 +00:00
qstring Updated license headers 2016-01-21 18:55:18 +00:00
qstringbuilder Updated license headers 2016-01-21 18:55:18 +00:00
qstringlist Updated license headers 2016-01-21 18:55:18 +00:00
qvector Replace qAllocMore with a pair of more useful functions 2016-06-09 15:32:14 +00:00
tools.pro Skip old benchmark that doesn't build automatically 2016-04-13 12:23:06 +00:00