summaryrefslogtreecommitdiffstats
path: root/src/corelib/global/qtypeinfo.h
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@intel.com>2015-02-10 22:19:51 -0800
committerThiago Macieira <thiago.macieira@intel.com>2015-02-17 00:42:04 +0000
commitb584648df169bb9c8b67b24b4504b0fea82b093d (patch)
tree8506080a4bb82de5b9a82c6a33a932f8daef8bf2 /src/corelib/global/qtypeinfo.h
parent738e9b185c72b6814bc3e4ea2a7a23adce326a73 (diff)
Use Clang 3.6's __builtin_assume in Q_ASSUME
It's more efficient than the current implementation. Example: int f(int i) { Q_ASSUME(i < 8); return i < 8; } Before: cmpl $8, %edi setl %al movzbl %al, %eax retq After: movl $1, %eax retq Change-Id: I1a800c709d3543699131ffff13c1c50713a8da2c Reviewed-by: Olivier Goffart (Woboq GmbH) <ogoffart@woboq.com> Reviewed-by: Marc Mutz <marc.mutz@kdab.com>
Diffstat (limited to 'src/corelib/global/qtypeinfo.h')
0 files changed, 0 insertions, 0 deletions