Replace the qCpuHasFeature function with a macro
authorThiago Macieira <thiago.macieira@intel.com>
Thu, 5 Dec 2013 01:14:07 +0000 (17:14 -0800)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Thu, 5 Dec 2013 22:57:47 +0000 (23:57 +0100)
commit13673ced441f90fa62b41e69b5d5d7341d2e24f9
tree202228be0dc459bffb5faf0a91276f45970294f6
parentaf47adede0de1e2420161d7b2f348343134a5009
Replace the qCpuHasFeature function with a macro

We want to make sure that there's a constant propagation from the static
variable that is filled in with the current code-generation options.
With most compilers in debug mode, we'd carry dead code. With MSVC, even
inlining is really bad even in release mode, and it doesn't perform
constant propagation even with __forceinline.

Change-Id: I7a95ff6622b864771243990bb5e205b2df0c33fc
Reviewed-by: Marc Mutz <marc.mutz@kdab.com>
src/corelib/tools/qsimd_p.h