diff options
author | Thiago Macieira <thiago.macieira@intel.com> | 2015-07-17 13:22:13 -0700 |
---|---|---|
committer | Thiago Macieira <thiago.macieira@intel.com> | 2015-09-22 06:22:07 +0000 |
commit | 6a8251a89b6a61258498f4af1ba7b3d5b7f7096c (patch) | |
tree | 3776a2c70572a3735f452b4c467cfe208ccab3a1 /src/network/bearer/qnetworkconfigmanager_p.cpp | |
parent | 09aeda21b902763919c2e0b2b06d09275d136e8c (diff) |
Reorganize the bits for the CPU feature detection
Instead of trying to detect one bit and set another, let's just use the
bits from the x86 CPUID instruction on x86. This makes use of the full
64-bit space now.
Since MSVC doesn't like enums bigger than 32-bit, we have to store the
bit number instead of the actual bit value in the constant. For that
reason, I also renamed the constants, to catch anyone who was using them
directly, instead of through qCpuHasFeature.
Change-Id: Ib306f8f647014b399b87ffff13f1d587692d827a
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/network/bearer/qnetworkconfigmanager_p.cpp')
0 files changed, 0 insertions, 0 deletions