const char *name);
#define VIR_DOMAIN_CAPS_ENUM_IS_SET(capsEnum, value) \
- ((capsEnum).values & (1 << value))
+ ((capsEnum).values & (1U << value))
#define VIR_DOMAIN_CAPS_ENUM_SET(capsEnum, ...) \
do { \
sub1 = *cpuid;
for (sub = 2; sub < 64; sub++) {
if (sub < 32 &&
- !(sub0.eax & (1 << sub)) &&
- !(sub1.ecx & (1 << sub)))
+ !(sub0.eax & (1U << sub)) &&
+ !(sub1.ecx & (1U << sub)))
continue;
if (sub >= 32 &&
- !(sub0.edx & (1 << (sub - 32))) &&
- !(sub1.edx & (1 << (sub - 32))))
+ !(sub0.edx & (1U << (sub - 32))) &&
+ !(sub1.edx & (1U << (sub - 32))))
continue;
cpuid->ecx_in = sub;
return -1;
for (sub = 1; sub < 32; sub++) {
- if (!(res & (1 << sub)))
+ if (!(res & (1U << sub)))
continue;
cpuid->ecx_in = sub;
cpuidCall(cpuid);