aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2017-08-22 19:58:26 -0400
committerJack Lloyd <[email protected]>2017-08-22 19:58:26 -0400
commitd97fd8356fc1eaacf44f636dcf31b4dae057cb74 (patch)
tree6fdafd2b774a1ce6b6fbff396c48f271b636cdae /src
parent11561110dee4d09fd65119592c8ed44a2f1dd983 (diff)
Fix Altivec detection
Broken in c3ae43c04c
Diffstat (limited to 'src')
-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"