summaryrefslogtreecommitdiffstats
path: root/tests/auto/corelib/kernel
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@intel.com>2017-11-30 20:37:57 -0800
committerGabriel de Dietrich <gabriel.dedietrich@qt.io>2018-01-24 21:13:20 +0000
commit43c44d05ca6af4ec78c1dea84635375a637ff80d (patch)
tree268767b106cb5b74826711e687f3c6d937b229fb /tests/auto/corelib/kernel
parent34e8cafa29a5240bb7a426c69a5fd8e8ad741dc4 (diff)
Update the overflow functions to include qsizetype
Commit 29bc68cf169b8cf87d306a1c72e12eb9b6fbfce7 added support for unsigned and commit 5ff7a3d96e0ce0dcb3d388b53d038cdd40c7a975 later added support for int. This commit adds support for qsizetype, which isn't int on 64-bit platforms. We do this by reorganizing the code and using the generic version of __builtin_{add,sub,mul}_overflow from GCC 5 and Clang 3.8, which ICC 18 seems to support now too on Linux. That leaves older versions of GCC and Clang, as well as MSVC, ICC on Windows, and the GHS compiler, to use the generic implementations, as I've removed the assembly code those versions of GCC and Clang on x86 are now uncommon. Note: any older version of ICC probably breaks. We only support the latest. Change-Id: I9e2892cb6c374e93bcb7fffd14fc11bcd5f067a7 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'tests/auto/corelib/kernel')
0 files changed, 0 insertions, 0 deletions