From 2b060c146db72c6a41e2a4c3072fb2b112f46f5e Mon Sep 17 00:00:00 2001 From: Jeffrey Walton Date: Sat, 27 Apr 2019 18:20:45 -0400 Subject: [PATCH] Update defines for Issue 743 --- blake2.cpp | 2 +- blake2b_simd.cpp | 1 + blake2s_simd.cpp | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/blake2.cpp b/blake2.cpp index 92d3d7f4..285a448a 100644 --- a/blake2.cpp +++ b/blake2.cpp @@ -38,7 +38,7 @@ // https://github.com/weidai11/cryptopp/issues/743 #if defined(__xlC__) && (__xlC__ < 0x0d01) # define CRYPTOPP_DISABLE_ALTIVEC 1 -# define CRYPTOPP_POWER8_ALTIVEC 1 +# undef CRYPTOPP_POWER7_AVAILABLE # undef CRYPTOPP_POWER8_AVAILABLE # undef CRYPTOPP_ALTIVEC_AVAILABLE #endif diff --git a/blake2b_simd.cpp b/blake2b_simd.cpp index ff138321..13272d21 100644 --- a/blake2b_simd.cpp +++ b/blake2b_simd.cpp @@ -28,6 +28,7 @@ // https://github.com/weidai11/cryptopp/issues/743 #if defined(__xlC__) && (__xlC__ < 0x0d01) # define CRYPTOPP_DISABLE_ALTIVEC 1 +# undef CRYPTOPP_POWER7_AVAILABLE # undef CRYPTOPP_POWER8_AVAILABLE # undef CRYPTOPP_ALTIVEC_AVAILABLE #endif diff --git a/blake2s_simd.cpp b/blake2s_simd.cpp index 827916cd..b964b25e 100644 --- a/blake2s_simd.cpp +++ b/blake2s_simd.cpp @@ -38,7 +38,7 @@ // https://github.com/weidai11/cryptopp/issues/743 #if defined(__xlC__) && (__xlC__ < 0x0d01) # define CRYPTOPP_DISABLE_ALTIVEC 1 -# define CRYPTOPP_POWER8_ALTIVEC 1 +# undef CRYPTOPP_POWER7_AVAILABLE # undef CRYPTOPP_POWER8_AVAILABLE # undef CRYPTOPP_ALTIVEC_AVAILABLE #endif