qt5base-lts/tests/benchmarks/corelib
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
..
codecs Updated license headers 2016-01-21 18:55:18 +00:00
io Updated license headers 2016-01-21 18:55:18 +00:00
json Updated license headers 2016-01-21 18:55:18 +00:00
kernel Merge remote-tracking branch 'origin/5.6' into 5.7 2016-04-04 08:59:18 +02:00
mimetypes Updated license headers 2016-01-21 18:55:18 +00:00
plugin Updated license headers 2016-01-21 18:55:18 +00:00
thread Updated license headers 2016-01-21 18:55:18 +00:00
tools Replace qAllocMore with a pair of more useful functions 2016-06-09 15:32:14 +00:00
corelib.pro test: Moving tst_QMimeDatabase::inheritsPerformance() test 2012-10-31 19:56:42 +01:00