aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/utils/cpuid.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/utils/cpuid.cpp')
-rw-r--r--src/lib/utils/cpuid.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/utils/cpuid.cpp b/src/lib/utils/cpuid.cpp
index 59e8991ab..6645505af 100644
--- a/src/lib/utils/cpuid.cpp
+++ b/src/lib/utils/cpuid.cpp
@@ -84,7 +84,7 @@ uint64_t powerpc_detect_cpu_featutures()
int error = sysctl(sels, 2, &vector_type, &length, NULL, 0);
if(error == 0 && vector_type > 0)
- return (1ULL << CPUID::CPUID_ALTIVEC_BIT);
+ return CPUID::CPUID_ALTIVEC_BIT;
#elif defined(BOTAN_TARGET_OS_IS_LINUX) || defined(BOTAN_TARGET_OS_IS_NETBSD)
/*
@@ -120,7 +120,7 @@ uint64_t powerpc_detect_cpu_featutures()
pvr == PVR_POWER6 || pvr == PVR_POWER7 || pvr == PVR_POWER8 ||
pvr == PVR_CELL_PPU)
{
- return (1ULL << CPUID::CPUID_ALTIVEC_BIT);
+ return CPUID::CPUID_ALTIVEC_BIT;
}
#else
#warning "No PowerPC feature detection available for this platform"