qt5base-lts/tests/auto/corelib/global/qnumeric
Erik Verbruggen 5ff7a3d96e Add {add,sub,mul}_overflow for signed integers.
In C++, signed overflow math is Undefined Behavior. However, many CPUs
do implement some way to check for overflow. Some compilers expose
intrinsics to use this functionality. If the no intrinsic is exposed,
overflow checking can be done by widening the result type and "manually"
checking for overflow. Or, for X86, by using inline assembly to use the
CPU features.

Used in QtQml.

Change-Id: I2ef2523ccaa98f6757a45e24862a2fa730a26bb0
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
2015-11-20 11:08:05 +00:00
..
.gitignore Moving relevant tests to corelib/global 2011-08-30 13:17:21 +02:00
qnumeric.pro Merge remote-tracking branch 'origin/5.6' into dev 2015-09-25 14:02:04 +02:00
tst_qnumeric.cpp Add {add,sub,mul}_overflow for signed integers. 2015-11-20 11:08:05 +00:00